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

Unified Diff: Source/core/html/HTMLMetaElement-in.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
« no previous file with comments | « Source/core/frame/Settings.in ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMetaElement-in.cpp
diff --git a/Source/core/html/HTMLMetaElement-in.cpp b/Source/core/html/HTMLMetaElement-in.cpp
index d63713d0ee7dffdbb1dfc52cb83bfdb52c03fc16..9575a9142c93fc0e3297bdc9cd45da0f89b0290b 100644
--- a/Source/core/html/HTMLMetaElement-in.cpp
+++ b/Source/core/html/HTMLMetaElement-in.cpp
@@ -388,9 +388,6 @@ void HTMLMetaElement::processViewportContentAttribute(const String& content, Vie
{
ASSERT(!content.isNull());
- if (!document().settings())
- return;
-
if (!document().shouldOverrideLegacyDescription(origin))
return;
@@ -408,18 +405,6 @@ void HTMLMetaElement::processViewportContentAttribute(const String& content, Vie
descriptionFromLegacyTag.minZoom = std::min(descriptionFromLegacyTag.minZoom, float(5));
}
- const Settings* settings = document().settings();
-
- if (descriptionFromLegacyTag.maxWidth.isAuto()) {
- if (descriptionFromLegacyTag.zoom == ViewportDescription::ValueAuto) {
- descriptionFromLegacyTag.minWidth = Length(ExtendToZoom);
- descriptionFromLegacyTag.maxWidth = Length(settings->layoutFallbackWidth(), Fixed);
- } else if (descriptionFromLegacyTag.maxHeight.isAuto()) {
- descriptionFromLegacyTag.minWidth = Length(ExtendToZoom);
- descriptionFromLegacyTag.maxWidth = Length(ExtendToZoom);
- }
- }
-
document().setViewportDescription(descriptionFromLegacyTag);
}
« no previous file with comments | « Source/core/frame/Settings.in ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698