summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/port/platform/graphics/GraphicsContextSkia.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/port/platform/graphics/GraphicsContextSkia.cpp b/webkit/port/platform/graphics/GraphicsContextSkia.cpp
index c91de5d..b14839e 100644
--- a/webkit/port/platform/graphics/GraphicsContextSkia.cpp
+++ b/webkit/port/platform/graphics/GraphicsContextSkia.cpp
@@ -996,21 +996,29 @@ void GraphicsContext::setURLForRect(const KURL& link, const IntRect& destRect)
void GraphicsContext::setPlatformFillColor(const Color& color)
{
+ if (paintingDisabled())
+ return;
platformContext()->setFillColor(color.rgb());
}
void GraphicsContext::setPlatformStrokeColor(const Color& strokecolor)
{
+ if (paintingDisabled())
+ return;
platformContext()->setStrokeColor(strokecolor.rgb());
}
void GraphicsContext::setPlatformStrokeThickness(float thickness)
{
+ if (paintingDisabled())
+ return;
platformContext()->setStrokeThickness(thickness);
}
void GraphicsContext::setPlatformTextDrawingMode(int mode)
{
+ if (paintingDisabled())
+ return;
platformContext()->setTextDrawingMode(mode);
}