summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShimeng (Simon) Wang <swang@google.com>2011-07-08 17:43:19 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-07-08 17:43:19 -0700
commit82a9205099b518893ebaa7dce8e91629fece56ec (patch)
tree5010047ec655027df52b9fe2d446782d9c700aa9
parent77d90f3f7ad7c71249eb8ac6ff1b8956b63270d5 (diff)
parentf64f5a68dd74f8313ddd4775742428cd20192f05 (diff)
downloadexternal_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.cpp12
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)