[Webkit-unassigned] [Bug 110357] ClippPath artifacts due to mask image clamping

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 20 11:26:15 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=110357





--- Comment #2 from Dirk Schulze <krit at webkit.org>  2013-02-20 11:28:38 PST ---
(In reply to comment #1)
> I don't see an ideal solution here, but I'll throw in a couple of ideas:
> 
> * try harder to avoid mask-based clipping - the graphics backends should be able to handle multiple simple shapes with consistent fill-rules natively
> 
> * do not cache the mask image for objects with a size > 4096px, but instead always draw it on the fly clamped to the current clip region (which, presumably, is < 4096px). This would avoid mask scaling issues but the result is not cacheable since it doesn't cover the whole object.

Sounds both reasonable.

Additionally, the SVG WG want to allow all graphics elements and container elements as content for <clipPath>. This makes a lot of sense for web authors, but makes is harder to optimize for us.

A possible solution is to create the union of all paths according to the winding rule of each path. This is very complicated and we might use a library for that (as inkscape does). But this is something that we need to decide in the future.

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



More information about the webkit-unassigned mailing list