aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_WebKit_Source_platform_image-decoders_png_PNGImageDecoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-third__party_WebKit_Source_platform_image-decoders_png_PNGImageDecoder.cpp')
-rw-r--r--www/chromium/files/patch-third__party_WebKit_Source_platform_image-decoders_png_PNGImageDecoder.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/chromium/files/patch-third__party_WebKit_Source_platform_image-decoders_png_PNGImageDecoder.cpp b/www/chromium/files/patch-third__party_WebKit_Source_platform_image-decoders_png_PNGImageDecoder.cpp
new file mode 100644
index 000000000000..51fe19ef8bc1
--- /dev/null
+++ b/www/chromium/files/patch-third__party_WebKit_Source_platform_image-decoders_png_PNGImageDecoder.cpp
@@ -0,0 +1,11 @@
+--- third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp.orig 2016-05-27 18:46:06.992656000 -0400
++++ third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp 2016-05-27 18:46:37.983471000 -0400
+@@ -234,7 +234,7 @@
+ #endif
+ png_uint_32 profileLength = 0;
+ if (png_get_iCCP(png, info, &profileName, &compressionType, &profile, &profileLength)) {
+- setColorProfileAndTransform(profile, profileLength, imageHasAlpha, false /* useSRGB */);
++ setColorProfileAndTransform(reinterpret_cast<const char*>(profile), profileLength, imageHasAlpha, false /* useSRGB */);
+ }
+ }
+ #endif // PNG_iCCP_SUPPORTED