summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLMetaElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLMetaElement.cpp')
-rw-r--r--WebCore/html/HTMLMetaElement.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/WebCore/html/HTMLMetaElement.cpp b/WebCore/html/HTMLMetaElement.cpp
index 520b9ae..4863f3b 100644
--- a/WebCore/html/HTMLMetaElement.cpp
+++ b/WebCore/html/HTMLMetaElement.cpp
@@ -86,6 +86,7 @@ void HTMLMetaElement::process()
else if ((equalIgnoringCase(name(), "HandheldFriendly")
&& equalIgnoringCase(m_content, "true") ||
equalIgnoringCase(name(), "MobileOptimized"))
+ && document()->settings()
&& document()->settings()->viewportWidth() == -1) {
// fit mobile sites directly in the screen
document()->settings()->setMetadataSettings("width", "device-width");