summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLDocument.cpp')
-rw-r--r--WebCore/html/HTMLDocument.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/html/HTMLDocument.cpp b/WebCore/html/HTMLDocument.cpp
index 01f151c..778c5ae 100644
--- a/WebCore/html/HTMLDocument.cpp
+++ b/WebCore/html/HTMLDocument.cpp
@@ -78,6 +78,7 @@
#ifdef ANDROID_META_SUPPORT
#include "FrameTree.h"
#include "Settings.h"
+#include "WebViewCore.h"
#endif
namespace WebCore {
@@ -399,6 +400,9 @@ void HTMLDocument::determineParseMode()
strstr(pubIDStr.data(), "-//wapforum//dtd xhtml mobile 1.") == pubIDStr.data()) {
// fit mobile sites directly in the screen
frame()->settings()->setMetadataSettings("width", "device-width");
+ FrameView* frameView = view();
+ if (frameView)
+ android::WebViewCore::getWebViewCore(frameView)->updateViewport();
}
#endif
// Look up the entry in our gperf-generated table.