diff options
author | John Reck <jreck@google.com> | 2011-06-06 17:31:38 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-06-07 13:40:23 -0700 |
commit | d68563709fdf68c90c730155149f6149b084730a (patch) | |
tree | 9ed48c92bbaff2f66fcc6778b9b650134bc68bc6 /Source/WebKit/android/nav | |
parent | dfadaafc15c16563aba837f05c778eaa2a433a8b (diff) | |
download | external_webkit-d68563709fdf68c90c730155149f6149b084730a.zip external_webkit-d68563709fdf68c90c730155149f6149b084730a.tar.gz external_webkit-d68563709fdf68c90c730155149f6149b084730a.tar.bz2 |
Serialize LayerAndroid
For now skip other layer types
Doesn't support animtations
Change-Id: Id1ff75f3d4d213f56561fc5d9c01f7ffee05cc79
Diffstat (limited to 'Source/WebKit/android/nav')
-rw-r--r-- | Source/WebKit/android/nav/WebView.cpp | 5 |
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) |