Commit Graph

3 Commits

Author SHA1 Message Date
Jeff Muizelaar
fdc5eaac33 Bug 562334. cairo: Fix checking in the broken version of 4efebc9638e7
I swapped these lines when trying to build a test case and checked in the broken version.
2010-04-30 14:10:19 -04:00
Jeff Muizelaar
347084e968 Bug 562334. cairo: Fix cairo_quartz_get_cg_context_with_clip. r=vlad
A problem happens when clip->all_clipped is set and we go to get a clipped
context. Normally backends don't see operations with clip->all_clipped and so
_cairo_surface_clipper_set_clip is designed with the assumption that
clip->all_clipped is never true. I added a work-around by manually setting the
CGContextClip with an empty rectangle, however this caused cairo to be confused
about what the actual clip was.

This patch fixes the problem by adding a new function
cairo_quartz_finish_cg_context_with_clip that is called after we're done with
the native context. It moves the CGContextSave/RestoreGState calls out of
gfxNativeDrawing into cairo and uses them to ensure that the clip remains
consistent with cairo's model of them.
2010-04-29 23:19:08 -04:00
Jeff Muizelaar
1ff50fe646 Bug 542605. Update cairo to 12d521df8acc483b2daa844d4f05dc2fe2765ba6. r=vlad,jwatt,bas
Reland after fixing quartz related clipping bug and a bunch of other ones
2010-04-05 22:28:54 -04:00