summaryrefslogtreecommitdiffstats
path: root/WebCore/platform
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2010-05-28 10:51:40 -0700
committerGrace Kloba <klobag@google.com>2010-05-28 10:51:40 -0700
commit27d79a6495971cad26199bdf5dc79abcb1ff1c9e (patch)
tree5ace787638862ad144b0bfc41637b5947c45d4c9 /WebCore/platform
parenta551d0e188b3b4a05e05cc70ff0838c3165c10f6 (diff)
downloadexternal_webkit-27d79a6495971cad26199bdf5dc79abcb1ff1c9e.zip
external_webkit-27d79a6495971cad26199bdf5dc79abcb1ff1c9e.tar.gz
external_webkit-27d79a6495971cad26199bdf5dc79abcb1ff1c9e.tar.bz2
Use the real visibleBounds for the ScrollView's
visibleContentRect. Use the fixedLayout for the main FramView so that the virtual viewport is set up correctly for the css percent calculation. Fix http://b/issue?id=2685194
Diffstat (limited to 'WebCore/platform')
-rw-r--r--WebCore/platform/android/ScrollViewAndroid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/platform/android/ScrollViewAndroid.cpp b/WebCore/platform/android/ScrollViewAndroid.cpp
index f5735ab..ccfe10e 100644
--- a/WebCore/platform/android/ScrollViewAndroid.cpp
+++ b/WebCore/platform/android/ScrollViewAndroid.cpp
@@ -54,7 +54,7 @@ namespace WebCore {
IntRect ScrollView::platformVisibleContentRect(bool includeScrollbars) const
{
- IntRect rect = platformWidget()->getBounds();
+ IntRect rect = platformWidget()->getVisibleBounds();
// This makes subframes draw correctly, since subframes cannot scroll.
if (parent())
return IntRect(0, 0, rect.width(), rect.height());