summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-10-08 14:43:10 +0100
committerBen Murdoch <benm@google.com>2010-10-08 16:10:55 +0100
commitf4220bb8c200137e401bfce313ec01c6dc1e59e0 (patch)
treed712299155934630250957e6fab05af34091fc5f /WebKit
parentc386a1109bd0af0c8b792c7ebf3059bf1d8bb30d (diff)
downloadexternal_webkit-f4220bb8c200137e401bfce313ec01c6dc1e59e0.zip
external_webkit-f4220bb8c200137e401bfce313ec01c6dc1e59e0.tar.gz
external_webkit-f4220bb8c200137e401bfce313ec01c6dc1e59e0.tar.bz2
Fix a WebCore/WebKit layering violation
Move the call to WebViewCore::updateViewport() from HTMLBodyElement and HTMLMetaElement to the PlatformBridge so that WebCore code does not depend on WebKit code to compile. In addition to being a layering violation, the inclusion of WebViewCore.h includes WebCoreJni.h, which in a future change causes LOG to get #undefined when using the chromium net stack. Change-Id: I1a9fd0b545080c9c0d9d26a3e5eb3b986c3986eb
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/WebCoreSupport/PlatformBridge.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/PlatformBridge.cpp b/WebKit/android/WebCoreSupport/PlatformBridge.cpp
index d959cf3..9d28a57 100644
--- a/WebKit/android/WebCoreSupport/PlatformBridge.cpp
+++ b/WebKit/android/WebCoreSupport/PlatformBridge.cpp
@@ -160,6 +160,12 @@ FloatRect PlatformBridge::screenRect()
return FloatRect(0.0, 0.0, info.w, info.h);
}
+void PlatformBridge::updateViewport(FrameView* frameView)
+{
+ android::WebViewCore* webViewCore = android::WebViewCore::getWebViewCore(frameView);
+ webViewCore->updateViewport();
+}
+
} // namespace WebCore