summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/nav/WebView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/android/nav/WebView.cpp')
-rw-r--r--Source/WebKit/android/nav/WebView.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp
index 8d3082b..61bc159 100644
--- a/Source/WebKit/android/nav/WebView.cpp
+++ b/Source/WebKit/android/nav/WebView.cpp
@@ -507,6 +507,11 @@ bool drawGL(WebCore::IntRect& viewRect, WebCore::IntRect* invalRect, WebCore::In
SkRect visibleRect;
calcOurContentVisibleRect(&visibleRect);
+ // Make sure we have valid coordinates. We might not have valid coords
+ // if the zoom manager is still initializing. We will be redrawn
+ // once the correct scale is set
+ if (!visibleRect.hasValidCoordinates())
+ return false;
bool ret = m_glWebViewState->drawGL(viewRect, visibleRect, invalRect,
webViewRect, titleBarHeight, clip, scale);
if (ret || m_glWebViewState->currentPictureCounter() != pic)