diff options
Diffstat (limited to 'WebCore/platform/android/ScrollViewAndroid.cpp')
-rw-r--r-- | WebCore/platform/android/ScrollViewAndroid.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WebCore/platform/android/ScrollViewAndroid.cpp b/WebCore/platform/android/ScrollViewAndroid.cpp index bce09cf..a59faf3 100644 --- a/WebCore/platform/android/ScrollViewAndroid.cpp +++ b/WebCore/platform/android/ScrollViewAndroid.cpp @@ -103,7 +103,10 @@ void ScrollView::platformRepaintContentRectangle(const IntRect &rect, bool now) #ifdef ANDROID_CAPTURE_OFFSCREEN_PAINTS void ScrollView::platformOffscreenContentRectangle(const IntRect& rect) { - android::WebViewCore::getWebViewCore(this)->offInvalidate(rect); + android::WebViewCore* core = android::WebViewCore::getWebViewCore(this); + if (!core) + return; + core->offInvalidate(rect); } #endif |