OSDN Git Service

Fix a layering violation in Document.
authorBen Murdoch <benm@google.com>
Mon, 25 Oct 2010 18:10:19 +0000 (19:10 +0100)
committerBen Murdoch <benm@google.com>
Tue, 26 Oct 2010 14:38:53 +0000 (15:38 +0100)
PlatformBridge already has the necessary functionality.

Change-Id: I67a5d68890d3976da69cff0c20f7b48931366b1d

WebCore/dom/Document.cpp

index 1e7c213..dc85267 100644 (file)
 #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
 }