diff options
Diffstat (limited to 'WebCore/platform/android')
-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 e45df53..f9e4285 100644 --- a/WebCore/platform/android/ScrollViewAndroid.cpp +++ b/WebCore/platform/android/ScrollViewAndroid.cpp @@ -97,12 +97,15 @@ void ScrollView::platformRepaintContentRectangle(const IntRect &rect, bool now) // vis from rect. This can compute up to four rectangular slices. void ScrollView::platformOffscreenContentRectangle(const IntRect& vis, const IntRect& rect) { + android::WebViewCore* core = android::WebViewCore::getWebViewCore(this); + if (!core) // SVG does not instantiate webviewcore + return; // and doesn't need to record drawing offscreen SkRegion rectRgn = SkRegion(rect); rectRgn.op(vis, SkRegion::kDifference_Op); SkRegion::Iterator iter(rectRgn); for (; !iter.done(); iter.next()) { const SkIRect& diff = iter.rect(); - android::WebViewCore::getWebViewCore(this)->offInvalidate(diff); + core->offInvalidate(diff); } } #endif |