Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1785953002: Ignore viewport meta tags when Request Desktop Site is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix more tests Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 3e2e08c5fd83597ce751980686ab01c35092cef5..211ea4405b69fd28fd7bc7aae680c4323f0a09b8 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3134,6 +3134,9 @@ void Document::setViewportDescription(const ViewportDescription& viewportDescrip
if (viewportDescription == m_viewportDescription)
return;
+ if (settings() && !settings()->viewportMetaEnabled() && viewportDescription.isMetaViewportType())
johnme 2016/03/15 11:38:10 Why do you only disable meta viewport in Request D
aelias_OOO_until_Jul13 2016/03/15 19:14:15 Those are rarely seen, and I think it's especially
aelias_OOO_until_Jul13 2016/03/15 19:29:26 OK, I made this change.
+ return;
+
// The UA-defined min-width is used by the processing of legacy meta tags.
if (!viewportDescription.isSpecifiedByAuthor())
m_viewportDefaultMinWidth = viewportDescription.minWidth;

Powered by Google App Engine
This is Rietveld 408576698