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

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

Issue 219123002: Read the default min-width value from the UA style sheets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 4c48b6f07ee54108b33b997b6bc7d7470f378605..ad2e9fe34e9188ae2a8fa740cc578a6e6b6684d8 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3030,6 +3030,10 @@ bool Document::shouldMergeWithLegacyDescription(ViewportDescription::Type origin
void Document::setViewportDescription(const ViewportDescription& viewportDescription)
{
+ // The UA defined min-width is used by the processing of legacy meta tags.
apavlov 2014/03/31 16:47:19 UA-defined
kenneth.r.christiansen 2014/03/31 20:37:09 Done.
+ if (!viewportDescription.isSpecifiedByAuthor())
+ m_viewportDefaultMinWidth = viewportDescription.minWidth;
+
if (viewportDescription.isLegacyViewportType()) {
if (settings() && !settings()->viewportMetaEnabled())
return;

Powered by Google App Engine
This is Rietveld 408576698