summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/PlatformBridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/WebCoreSupport/PlatformBridge.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/PlatformBridge.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/PlatformBridge.cpp b/WebKit/android/WebCoreSupport/PlatformBridge.cpp
index 2c238b2..baeddb2 100644
--- a/WebKit/android/WebCoreSupport/PlatformBridge.cpp
+++ b/WebKit/android/WebCoreSupport/PlatformBridge.cpp
@@ -184,6 +184,13 @@ void PlatformBridge::updateTextfield(FrameView* frameView, Node* nodePtr, bool c
webViewCore->updateTextfield(nodePtr, changeToPassword, text);
}
+void PlatformBridge::setScrollPosition(ScrollView* scrollView, int x, int y) {
+ // Check to make sure the view is the main FrameView.
+ android::WebViewCore *webViewCore = android::WebViewCore::getWebViewCore(scrollView);
+ if (webViewCore->mainFrame()->view() == scrollView)
+ webViewCore->scrollTo(x, y);
+}
+
int PlatformBridge::lowMemoryUsageMB()
{
return MemoryUsage::lowMemoryUsageMb();