michael@0: commit 061cc774a861f349334117203c301dee202f9f26 michael@0: Author: Jeff Muizelaar michael@0: Date: Wed Apr 7 23:05:48 2010 -0400 michael@0: michael@0: Remove an incorrect optimization that was causing the clip michael@0: not to be set when it should've been. michael@0: michael@0: This happens when the path is equal but the parents aren't shared. michael@0: michael@0: diff --git a/src/cairo-surface-clipper.c b/src/cairo-surface-clipper.c michael@0: index d536f0c..03610d1 100644 michael@0: --- a/src/cairo-surface-clipper.c michael@0: +++ b/src/cairo-surface-clipper.c michael@0: @@ -78,12 +78,6 @@ _cairo_surface_clipper_set_clip (cairo_surface_clipper_t *clipper, michael@0: if (clip != NULL && clip->path == clipper->clip.path) michael@0: return CAIRO_STATUS_SUCCESS; michael@0: michael@0: - if (clip != NULL && clipper->clip.path != NULL && michael@0: - _cairo_path_fixed_equal (&clip->path->path, &clipper->clip.path->path)) michael@0: - { michael@0: - return CAIRO_STATUS_SUCCESS; michael@0: - } michael@0: - michael@0: /* all clipped out state should never propagate this far */ michael@0: assert (clip == NULL || clip->path != NULL); michael@0: