Android is missing some calls to GraphicsContext::save/restore
inside our GraphicsContext::fillRect implementations. The calls
were added to the Skia GraphicsContext in http://trac.webkit.org/changeset/63102
Bug:
5361502
Change-Id: Ifcbc116d997473e3a184561102dc5cb74f5aa5ec
void GraphicsContext::fillRect(const FloatRect& rect)
{
+ save();
SkPaint paint;
m_data->setupPaintFill(&paint);
m_state.fillGradient.get());
GC2CANVAS(this)->drawRect(rect, paint);
+ restore();
}
void GraphicsContext::fillRect(const FloatRect& rect, const Color& color, ColorSpace)
return;
if (color.rgb() & 0xFF000000) {
+ save();
SkPaint paint;
m_data->setupPaintCommon(&paint);
paint.setAntiAlias(false);
GC2CANVAS(this)->drawRect(rect, paint);
+ restore();
}
}