mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
64df3d06dc
When we did the major cairo update in bug 739096, most of our old patch files were superseded and no longer relevant, but I failed to clean them up at the time. So here, we remove all the old patch files, and create new ones just for the fixes we've applied on top of the new code from upstream. I've omitted patch files for fixes that I am aware have already landed upstream, as those will automatically be included in any future update we take. (It's possible more of the new patch files will also be obsolete by the time we try pulling a new version, but at least they should provide a starting point.) Differential Revision: https://phabricator.services.mozilla.com/D164680
14 lines
462 B
Diff
14 lines
462 B
Diff
diff --git a/gfx/cairo/cairo/src/cairo-image-surface.c b/gfx/cairo/cairo/src/cairo-image-surface.c
|
|
--- a/gfx/cairo/cairo/src/cairo-image-surface.c
|
|
+++ b/gfx/cairo/cairo/src/cairo-image-surface.c
|
|
@@ -1243,6 +1243,9 @@ static cairo_image_color_t
|
|
int x, y;
|
|
cairo_image_color_t color;
|
|
|
|
+ if (image->width == 0 || image->height == 0)
|
|
+ return CAIRO_IMAGE_IS_MONOCHROME;
|
|
+
|
|
if (image->format == CAIRO_FORMAT_A1)
|
|
return CAIRO_IMAGE_IS_MONOCHROME;
|
|
|