[cairo-bugs] [Bug 29125] New: applying a clip can increase the region returned by cairo_copy_clip_rectangle_list

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jul 16 18:09:56 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29125

           Summary: applying a clip can increase the region returned by
                    cairo_copy_clip_rectangle_list
           Product: cairo
           Version: 1.9.13
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: bugs.freedesktop at karlt.net
         QAContact: cairo-bugs at cairographics.org


cairo_copy_clip_rectangle_list(cairo_t*) returns the expected extents of the
target surface until a clip is applied.  When the clip is applied it is not
intersected with the apparent existing clip (of the target extents) because
there is no clip recorded on the context, and cairo_copy_clip_rectangle_list
starts returning the applied clip (even when it is outside the target extents).

This looks like a regression from
http://cgit.freedesktop.org/cairo/commit/?id=bed2701e1c89095878d549cbca8f22d84f3dda3c
where clips were disassociated from surfaces.
Before that _cairo_clip_clip would consider the target extents.

To be consistent with _cairo_gstate_clip_extents, the context's clip should be
intersected with the target surface extents (instead of only using them when
there is no clip).

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list