summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/WebView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/nav/WebView.cpp')
-rw-r--r--WebKit/android/nav/WebView.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp
index 86f008b..e8bd0da 100644
--- a/WebKit/android/nav/WebView.cpp
+++ b/WebKit/android/nav/WebView.cpp
@@ -415,8 +415,13 @@ bool drawGL(WebCore::IntRect& viewRect, float scale, int extras)
if (!m_baseLayer)
return false;
- if (!m_glWebViewState)
+ if (!m_glWebViewState) {
m_glWebViewState = new GLWebViewState();
+ if (m_baseLayer->content()) {
+ IntRect rect(0, 0, m_baseLayer->content()->width(), m_baseLayer->content()->height());
+ m_glWebViewState->setBaseLayer(m_baseLayer, rect);
+ }
+ }
CachedRoot* root = getFrameCache(AllowNewer);
if (!root) {