OSDN Git Service

Fix a WebCore/WebKit layering violation
authorBen Murdoch <benm@google.com>
Fri, 8 Oct 2010 13:43:10 +0000 (14:43 +0100)
committerBen Murdoch <benm@google.com>
Fri, 8 Oct 2010 15:10:55 +0000 (16:10 +0100)
commitf4220bb8c200137e401bfce313ec01c6dc1e59e0
treed712299155934630250957e6fab05af34091fc5f
parentc386a1109bd0af0c8b792c7ebf3059bf1d8bb30d
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
WebCore/html/HTMLBodyElement.cpp
WebCore/html/HTMLMetaElement.cpp
WebCore/platform/android/PlatformBridge.h
WebKit/android/WebCoreSupport/PlatformBridge.cpp