summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/port/platform/graphics/GraphicsContextSkia.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/port/platform/graphics/GraphicsContextSkia.cpp b/webkit/port/platform/graphics/GraphicsContextSkia.cpp
index f842693..3591043 100644
--- a/webkit/port/platform/graphics/GraphicsContextSkia.cpp
+++ b/webkit/port/platform/graphics/GraphicsContextSkia.cpp
@@ -182,7 +182,7 @@ GraphicsContext::GraphicsContext(PlatformGraphicsContext *gc)
: m_common(createGraphicsContextPrivate())
, m_data(new GraphicsContextPlatformPrivate(gc))
{
- setPaintingDisabled(!platformContext()->canvas());
+ setPaintingDisabled(!gc || !platformContext()->canvas());
}
GraphicsContext::~GraphicsContext()