We can share the code of the different platforms, since it is nearly the same.
Created attachment 24157 [details] SVG clipping I made the code platform independent. I tested the patch with Cairo and Qt. Wasn't able to test it for Cg yet.
Comment on attachment 24157 [details] SVG clipping This looks fine from a CG perspective. I'll land it in my tree, run the tests and commit. Thanks for taking this on.
Eric, what is the status of this? Are you going to land it or should someone else? Assigning to Eric for resolution.
Committing to http://svn.webkit.org/repository/webkit/trunk ... D WebCore/svg/graphics/cairo/SVGResourceClipperCairo.cpp D WebCore/svg/graphics/cg/SVGResourceClipperCg.cpp D WebCore/svg/graphics/qt/SVGResourceClipperQt.cpp M WebCore/ChangeLog M WebCore/GNUmakefile.am M WebCore/WebCore.pro M WebCore/WebCore.vcproj/WebCore.vcproj M WebCore/WebCore.xcodeproj/project.pbxproj M WebCore/platform/graphics/GraphicsContext.h M WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp M WebCore/platform/graphics/cg/GraphicsContextCG.cpp M WebCore/platform/graphics/qt/GraphicsContextQt.cpp M WebCore/svg/graphics/SVGResourceClipper.cpp Committed r38405 This will affect our next Chromium merge (in a good way). :)