We need to move some cairo functions to the CairoUtilities so we can use them outside GraphicsContextCairo.
Created attachment 69613 [details] Proposed patch
Comment on attachment 69613 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=69613&action=review Looks great! Please fix the following small issues before landing though. > WebCore/platform/graphics/cairo/CairoUtilities.cpp:73 > +// We apply the pending path built via addPath to the Cairo context > +// lazily. This prevents interaction between the path and other routines > +// such as fillRect. This comment doesn't make quite as much sense now that this function is shared between different source files. It's probably safe just to remove it. > WebCore/platform/graphics/cairo/CairoUtilities.cpp:122 > +void drawPatternCairo(cairo_t* cr, cairo_surface_t* image, const IntSize& imageSize, const FloatRect& tileRect, I think it you should call this drawPatternToCairoContext to match the name of the other helper functions.
Landed with the suggested modifications http://trac.webkit.org/changeset/69015