summaryrefslogtreecommitdiffstats
path: root/WebCore/platform
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2010-04-15 12:33:51 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-04-15 12:33:51 -0700
commit3edc12358398336ddce4ca6ee74226a168792946 (patch)
treeb1ab4801141644c596667057a1eefd7d2125ab7a /WebCore/platform
parent40a329169016c529dd7ff6bf403a00f1307f9eb6 (diff)
parent5c6e2c7832240d131e937bcce24f904854159ab8 (diff)
downloadexternal_webkit-3edc12358398336ddce4ca6ee74226a168792946.zip
external_webkit-3edc12358398336ddce4ca6ee74226a168792946.tar.gz
external_webkit-3edc12358398336ddce4ca6ee74226a168792946.tar.bz2
am 5c6e2c78: am 34a423ba: am 22804c07: Pass scroll mode to Java so that we can handle overflow on html and body correctly.
Diffstat (limited to 'WebCore/platform')
-rw-r--r--WebCore/platform/ScrollView.cpp2
-rw-r--r--WebCore/platform/android/ScrollViewAndroid.cpp11
2 files changed, 11 insertions, 2 deletions
diff --git a/WebCore/platform/ScrollView.cpp b/WebCore/platform/ScrollView.cpp
index 1e28651..69ecac2 100644
--- a/WebCore/platform/ScrollView.cpp
+++ b/WebCore/platform/ScrollView.cpp
@@ -985,11 +985,11 @@ void ScrollView::platformSetScrollbarsSuppressed(bool)
#if !PLATFORM(MAC) && !PLATFORM(WX)
+#if !PLATFORM(ANDROID)
void ScrollView::platformSetScrollbarModes()
{
}
-#if !PLATFORM(ANDROID)
void ScrollView::platformScrollbarModes(ScrollbarMode& horizontal, ScrollbarMode& vertical) const
{
horizontal = ScrollbarAuto;
diff --git a/WebCore/platform/android/ScrollViewAndroid.cpp b/WebCore/platform/android/ScrollViewAndroid.cpp
index db20591..90a988d 100644
--- a/WebCore/platform/android/ScrollViewAndroid.cpp
+++ b/WebCore/platform/android/ScrollViewAndroid.cpp
@@ -73,9 +73,18 @@ void ScrollView::platformSetScrollPosition(const WebCore::IntPoint& pt)
android::WebViewCore::getWebViewCore(this)->scrollTo(pt.x(), pt.y());
}
+void ScrollView::platformSetScrollbarModes()
+{
+ if (parent()) // no scrollbar for the subframes
+ return;
+ android::WebViewCore::getWebViewCore(this)->setScrollbarModes(m_horizontalScrollbarMode, m_verticalScrollbarMode);
+}
+
void ScrollView::platformScrollbarModes(ScrollbarMode& h, ScrollbarMode& v) const
{
- h = v = ScrollbarAlwaysOff;
+ // m_horizontalScrollbarMode and m_verticalScrollbarMode are set in ScrollView::setScrollbarModes()
+ h = m_horizontalScrollbarMode;
+ v = m_verticalScrollbarMode;
}
bool ScrollView::platformProhibitsScrolling()