diff options
author | Shimeng (Simon) Wang <swang@google.com> | 2011-07-08 17:43:19 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-08 17:43:19 -0700 |
commit | 82a9205099b518893ebaa7dce8e91629fece56ec (patch) | |
tree | 5010047ec655027df52b9fe2d446782d9c700aa9 | |
parent | 77d90f3f7ad7c71249eb8ac6ff1b8956b63270d5 (diff) | |
parent | f64f5a68dd74f8313ddd4775742428cd20192f05 (diff) | |
download | external_webkit-82a9205099b518893ebaa7dce8e91629fece56ec.zip external_webkit-82a9205099b518893ebaa7dce8e91629fece56ec.tar.gz external_webkit-82a9205099b518893ebaa7dce8e91629fece56ec.tar.bz2 |
Merge "Revert "Factor the scale into the actual screen space calculation.""
-rw-r--r-- | Source/WebCore/platform/android/ScrollViewAndroid.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/WebCore/platform/android/ScrollViewAndroid.cpp b/Source/WebCore/platform/android/ScrollViewAndroid.cpp index 87c6a1f..f54e5ea 100644 --- a/Source/WebCore/platform/android/ScrollViewAndroid.cpp +++ b/Source/WebCore/platform/android/ScrollViewAndroid.cpp @@ -68,36 +68,32 @@ IntSize ScrollView::platformContentsSize() const return m_contentsSize; } -static float getWebViewCoreScale(const ScrollView* view) { - return android::WebViewCore::getWebViewCore(view)->scale(); -} - int ScrollView::platformActualWidth() const { if (parent()) return width(); - return platformWidget()->visibleWidth() * getWebViewCoreScale(this); + return platformWidget()->visibleWidth(); } int ScrollView::platformActualHeight() const { if (parent()) return height(); - return platformWidget()->visibleHeight() * getWebViewCoreScale(this); + return platformWidget()->visibleHeight(); } int ScrollView::platformActualScrollX() const { if (parent()) return scrollX(); - return platformWidget()->visibleX() * getWebViewCoreScale(this); + return platformWidget()->visibleX(); } int ScrollView::platformActualScrollY() const { if (parent()) return scrollY(); - return platformWidget()->visibleY() * getWebViewCoreScale(this); + return platformWidget()->visibleY(); } void ScrollView::platformSetScrollPosition(const WebCore::IntPoint& pt) |