diff options
author | Ben Murdoch <benm@google.com> | 2011-07-26 12:43:01 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-07-26 12:43:01 +0100 |
commit | 3bbbf8594471ad90e598d471afa47965f123f84f (patch) | |
tree | 3b4061da2d01138e8095df3bfe8532c2ed22b69d /Source/WebCore/html/HTMLBodyElement.cpp | |
parent | ad322cf1eda011a4d60aa1f2f10f6487491e4019 (diff) | |
download | external_webkit-3bbbf8594471ad90e598d471afa47965f123f84f.zip external_webkit-3bbbf8594471ad90e598d471afa47965f123f84f.tar.gz external_webkit-3bbbf8594471ad90e598d471afa47965f123f84f.tar.bz2 |
Fix typo in mobile site detection for automatic viewport.
Bug: 5073443
Change-Id: I433aae6c4cea5677ac4c04d34d50b903a48ebbe6
Diffstat (limited to 'Source/WebCore/html/HTMLBodyElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLBodyElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/html/HTMLBodyElement.cpp b/Source/WebCore/html/HTMLBodyElement.cpp index 0c93c95..421e28e 100644 --- a/Source/WebCore/html/HTMLBodyElement.cpp +++ b/Source/WebCore/html/HTMLBodyElement.cpp @@ -204,7 +204,7 @@ void HTMLBodyElement::insertedIntoDocument() if (settings) { String host = document()->baseURI().host().lower(); if (settings->viewportWidth() == -1 && (host.startsWith("m.") || host.startsWith("mobile.") - || host.startsWith("wap.") || host.contains(".m.") || host.contains(".mobile." || host.contains(".wap.")))) { + || host.startsWith("wap.") || host.contains(".m.") || host.contains(".mobile.") || host.contains(".wap."))) { // fit mobile sites directly in the screen document()->processViewport("width=device-width"); } |