Skia's text rendering gives preference to the gradient, then the pattern. This is problematic though in that once a gradient has been set the gradient getter always returns non-null. Skia needs to only use the gradient/pattern if the fill/strokecolorspace indicates the gradients/pattern should be used. This can be seen when using the test case LayoutTests/fast/canvas/canvas-text-alignment.html.
Created attachment 28697 [details] Fix for 24651
Comment on attachment 28697 [details] Fix for 24651 OK.
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/platform/graphics/GraphicsContext.cpp M WebCore/platform/graphics/GraphicsContext.h M WebCore/platform/graphics/GraphicsContextPrivate.h M WebCore/platform/graphics/skia/SkiaFontWin.cpp Committed r41789