the GraphicsContext interface does not support passing a winding rule to the canvas clip operator. Update the GraphicsContext interface for all platforms + add support for eoclip
Created attachment 183024 [details] Patch
Comment on attachment 183024 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=183024&action=review Looks like you are going to go the wrong way. We already have clipPath which should do what you want. And I am not really a friend of leaving the other ports behind when it would be fairly easy to implement there as well. However, this bug should be mainly invalid. > Source/WebCore/ChangeLog:5 > + Can you please summarize your changes and what they are good for here please? > Source/WebCore/ChangeLog:11 > + * platform/graphics/GraphicsContext.h: Change canvasClip and clip signature with default winding rule End sentences please. > Source/WebCore/ChangeLog:12 > + * platform/graphics/cairo/GraphicsContextCairo.cpp: Update interface with new signature so it still compiles Ditto.... And in a couple of other lines as well.
Created attachment 183065 [details] Patch
Comment on attachment 183065 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=183065&action=review We discussed the behavior of all the different clip function on IRC. clipPath(Path, WindRule) is not doing the same as clip(Path, WindRule). So it seems indeed the better solution to edit clip() and add the WindRule there. > Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp:995 > +// FIXME: don't ignore the winding rule. https://bugs.webkit.org/show_bug.cgi?id=107065 > +void GraphicsContext::clip(const Path& path, WindRule) usually we put it into the function, but this is not blocking this patch. Just for the future.
Comment on attachment 183065 [details] Patch Clearing flags on attachment: 183065 Committed r139967: <http://trac.webkit.org/changeset/139967>
All reviewed patches have been landed. Closing bug.