summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/plugins
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2012-04-06 11:07:38 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-06 11:07:38 -0700
commitc88c88907b618e468ec3928b06a3a31d4f99b9c6 (patch)
treeb6c7a50f0d978dc64f40d06065c2a4449ac882fd /Source/WebCore/plugins
parentdce2610c764191370d209db76d3fbc3381000349 (diff)
parent64e4b265f84573b97d408f7d3e5aa99a647be057 (diff)
downloadexternal_webkit-c88c88907b618e468ec3928b06a3a31d4f99b9c6.zip
external_webkit-c88c88907b618e468ec3928b06a3a31d4f99b9c6.tar.gz
external_webkit-c88c88907b618e468ec3928b06a3a31d4f99b9c6.tar.bz2
Merge "Implements a recording GraphicsContext"
Diffstat (limited to 'Source/WebCore/plugins')
-rw-r--r--Source/WebCore/plugins/android/PluginViewAndroid.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/WebCore/plugins/android/PluginViewAndroid.cpp b/Source/WebCore/plugins/android/PluginViewAndroid.cpp
index 315d8a4..fdf6e03 100644
--- a/Source/WebCore/plugins/android/PluginViewAndroid.cpp
+++ b/Source/WebCore/plugins/android/PluginViewAndroid.cpp
@@ -690,7 +690,10 @@ void PluginView::paint(GraphicsContext* context, const IntRect& rect)
notification of its global position change.
*/
updatePluginWidget();
- m_window->setSurfaceClip(context->platformContext()->mCanvas->getTotalClip().getBounds());
+ SkCanvas* canvas = context->platformContext()->getCanvas();
+ if (!canvas)
+ return;
+ m_window->setSurfaceClip(canvas->getTotalClip().getBounds());
} else {
m_window->inval(rect, false);
context->save();