summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-10-25 19:10:19 +0100
committerBen Murdoch <benm@google.com>2010-10-26 15:38:53 +0100
commite07c496fbcd502aa97eb8e9d53a74623d3c1cff6 (patch)
tree9d6032738d0e0e7ae4482973273e824e88b9b680
parentbaadc60762e62d6911b9b3ada7f622a8d6cb695f (diff)
downloadexternal_webkit-e07c496fbcd502aa97eb8e9d53a74623d3c1cff6.zip
external_webkit-e07c496fbcd502aa97eb8e9d53a74623d3c1cff6.tar.gz
external_webkit-e07c496fbcd502aa97eb8e9d53a74623d3c1cff6.tar.bz2
Fix a layering violation in Document.
PlatformBridge already has the necessary functionality. Change-Id: I67a5d68890d3976da69cff0c20f7b48931366b1d
-rw-r--r--WebCore/dom/Document.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/WebCore/dom/Document.cpp b/WebCore/dom/Document.cpp
index 1e7c213..dc85267 100644
--- a/WebCore/dom/Document.cpp
+++ b/WebCore/dom/Document.cpp
@@ -172,11 +172,6 @@
#include "SVGZoomEvent.h"
#endif
-#if PLATFORM(ANDROID)
-// FIXME: We shouldn't be including this from WebCore!
-#include "WebViewCore.h"
-#endif
-
#ifdef ANDROID_META_SUPPORT
#include "Settings.h"
#endif
@@ -664,7 +659,7 @@ void Document::setDocType(PassRefPtr<DocumentType> docType)
if (Frame *f = frame())
f->settings()->setMetadataSettings("width", "device-width");
if (FrameView* frameView = view())
- android::WebViewCore::getWebViewCore(frameView)->updateViewport();
+ PlatformBridge::updateViewport(frameView);
}
#endif
}