Needs a review, as the fix touches some cross platform code. It moves some methods from ImageCG.cpp into Image.cpp, makes the new drawPattern method virtual, so we can have an optimised implementation for BitmapImage, and splits draw() up into a cross platform part that checks whether it can do a solid fill instead and only after that calls a drawNative method on Image.
Created attachment 12507 [details] See description of the bug.
Comment on attachment 12507 [details] See description of the bug. Note, our policy is that build fixes don't necessarily need review. But I guess this goes way beyond a build fix. +#include "math.h" Should be <math.h>. #include "IntRect.h" #include "MimeTypeRegistry.h" +#include "GraphicsContext.h" +#include "AffineTransform.h" Should keep these alphabetical. I believe there is a far-more-efficient way to do tiling with CG, so making drawTiled a cross-platform function may not be a good direction for the future. r=me
Created attachment 12514 [details] updated version after Darins try to fix the build
Created attachment 12516 [details] next try
Created attachment 12517 [details] next try...
Created attachment 12518 [details] hopefully last try....