summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorRussell Brenner <russellbrenner@google.com>2011-03-18 17:02:30 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-18 17:02:30 -0700
commit2808451ba0945aea63cf2a4d59847a079e8766f9 (patch)
tree952e593da6f7d68e8e0d5dd740f72882ca1f30be /WebKit
parenta66694328711baf290978696f7cd8e01ca1687ee (diff)
parent462195e725e3764bb2bb429d08987a65d84a445f (diff)
downloadexternal_webkit-2808451ba0945aea63cf2a4d59847a079e8766f9.zip
external_webkit-2808451ba0945aea63cf2a4d59847a079e8766f9.tar.gz
external_webkit-2808451ba0945aea63cf2a4d59847a079e8766f9.tar.bz2
am 462195e7: am b1444e52: Fix for FBO offset when drawing with alpha
* commit '462195e725e3764bb2bb429d08987a65d84a445f': Fix for FBO offset when drawing with alpha
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/nav/WebView.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp
index 5b1e369..053f2a9 100644
--- a/WebKit/android/nav/WebView.cpp
+++ b/WebKit/android/nav/WebView.cpp
@@ -1498,9 +1498,14 @@ class GLDrawFunctor : Functor {
WebCore::IntRect inval;
int titlebarHeight = webViewRect.height() - viewRect.height();
- bool retVal = (*wvInstance.*funcPtr)(viewRect, &inval, scale, extras);
+
+ uirenderer::DrawGlInfo* info = reinterpret_cast<uirenderer::DrawGlInfo*>(data);
+ WebCore::IntRect localViewRect = viewRect;
+ if (info->isLayer)
+ localViewRect.move(-1 * localViewRect.x(), -1 * localViewRect.y());
+
+ bool retVal = (*wvInstance.*funcPtr)(localViewRect, &inval, scale, extras);
if (retVal) {
- uirenderer::DrawGlInfo* info = reinterpret_cast<uirenderer::DrawGlInfo*>(data);
IntRect finalInval;
if (inval.isEmpty()) {
finalInval = webViewRect;