Skip to content

Commit 0bc4906

Browse files
authored
browser(webkit): use unsigned long instead of size_t to fix Win (#2295)
1 parent 96f9bbe commit 0bc4906

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

browser_patches/webkit/BUILD_NUMBER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1237
1+
1238

browser_patches/webkit/patches/bootstrap.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5299,7 +5299,7 @@ index 892d8de6d345d91fda80cfa5334c4aa68b757da3..a22497d801a349487be10b15139e9c76
52995299

53005300
#if PLATFORM(IOS_FAMILY)
53015301
diff --git a/Source/WebCore/platform/graphics/cairo/ImageBufferUtilitiesCairo.cpp b/Source/WebCore/platform/graphics/cairo/ImageBufferUtilitiesCairo.cpp
5302-
index d79728555b7db9b59cb615c55a7a7a6851cb57c8..6c05bfbcc1056e5fb906bf019cc52472d1b02882 100644
5302+
index d79728555b7db9b59cb615c55a7a7a6851cb57c8..61d3cc4b488e35ef9e1afa1ce3ac5f5d60ebe9a7 100644
53035303
--- a/Source/WebCore/platform/graphics/cairo/ImageBufferUtilitiesCairo.cpp
53045304
+++ b/Source/WebCore/platform/graphics/cairo/ImageBufferUtilitiesCairo.cpp
53055305
@@ -48,6 +48,13 @@
@@ -5339,7 +5339,7 @@ index d79728555b7db9b59cb615c55a7a7a6851cb57c8..6c05bfbcc1056e5fb906bf019cc52472
53395339
+ jpeg_create_compress(&info);
53405340
+
53415341
+ unsigned char* bufferPtr = nullptr;
5342-
+ size_t bufferSize;
5342+
+ unsigned long bufferSize;
53435343
+ jpeg_mem_dest(&info, &bufferPtr, &bufferSize);
53445344
+ info.image_width = cairo_image_surface_get_width(image);
53455345
+ info.image_height = cairo_image_surface_get_height(image);

0 commit comments

Comments
 (0)