1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/cairo/surface-clipper.patch Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +commit 061cc774a861f349334117203c301dee202f9f26 1.5 +Author: Jeff Muizelaar <jmuizelaar@mozilla.com> 1.6 +Date: Wed Apr 7 23:05:48 2010 -0400 1.7 + 1.8 + Remove an incorrect optimization that was causing the clip 1.9 + not to be set when it should've been. 1.10 + 1.11 + This happens when the path is equal but the parents aren't shared. 1.12 + 1.13 +diff --git a/src/cairo-surface-clipper.c b/src/cairo-surface-clipper.c 1.14 +index d536f0c..03610d1 100644 1.15 +--- a/src/cairo-surface-clipper.c 1.16 ++++ b/src/cairo-surface-clipper.c 1.17 +@@ -78,12 +78,6 @@ _cairo_surface_clipper_set_clip (cairo_surface_clipper_t *clipper, 1.18 + if (clip != NULL && clip->path == clipper->clip.path) 1.19 + return CAIRO_STATUS_SUCCESS; 1.20 + 1.21 +- if (clip != NULL && clipper->clip.path != NULL && 1.22 +- _cairo_path_fixed_equal (&clip->path->path, &clipper->clip.path->path)) 1.23 +- { 1.24 +- return CAIRO_STATUS_SUCCESS; 1.25 +- } 1.26 +- 1.27 + /* all clipped out state should never propagate this far */ 1.28 + assert (clip == NULL || clip->path != NULL); 1.29 +