b=308917, fix quartz SurfacePatternDrawFunc; r=joe
authorVladimir Vukicevic <vladimir@pobox.com>
Thu, 09 Oct 2008 14:49:15 -0700
changeset 20223 3f9a436f49fe3dc134fe23ea49db5831a0a3e766
parent 20222 39e675ae3646815a08179680860eaf0910961efe
child 20224 ab96d199ce9b55292835e2afc17d717d8dc6f022
push idunknown
push userunknown
push dateunknown
reviewersjoe
bugs308917
milestone1.9.1b2pre
b=308917, fix quartz SurfacePatternDrawFunc; r=joe
gfx/cairo/cairo/src/cairo-quartz-surface.c
--- a/gfx/cairo/cairo/src/cairo-quartz-surface.c
+++ b/gfx/cairo/cairo/src/cairo-quartz-surface.c
@@ -801,17 +801,16 @@ SurfacePatternDrawFunc (void *ainfo, CGC
 	 */
 	CGContextTranslateCTM (context, 2 * info->imageBounds.size.width, 0);
 	CGContextScaleCTM (context, -1, 1);
 	CGContextDrawImage (context, info->imageBounds, info->image);
 
 	/* Then unflip the Y-axis again, and draw the image above the point. */
 	CGContextScaleCTM (context, 1, -1);
 	CGContextDrawImage (context, info->imageBounds, info->image);
-
     }
 }
 
 static void
 SurfacePatternReleaseInfoFunc (void *ainfo)
 {
     SurfacePatternDrawInfo *info = (SurfacePatternDrawInfo*) ainfo;
 
@@ -867,18 +866,18 @@ static cairo_int_status_t
      * Otherwise, the underlying data store may disappear from under us!
      *
      * _cairo_surface_to_cgimage will copy when it converts non-Quartz surfaces,
      * since the Quartz surfaces have a higher chance of sticking around.  If the
      * source is a quartz image surface, then it's set up to retain a ref to the
      * image surface that it's backed by.
      */
     info->image = image;
-
     info->imageBounds = CGRectMake (0, 0, extents.width, extents.height);
+    info->do_reflect = FALSE;
 
     pbounds.origin.x = 0;
     pbounds.origin.y = 0;
 
     if (spattern->base.extend == CAIRO_EXTEND_REFLECT) {
 	pbounds.size.width = 2.0 * extents.width;
 	pbounds.size.height = 2.0 * extents.height;
 	info->do_reflect = TRUE;