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

Unified Diff: Source/core/html/HTMLMetaElement-in.cpp

Issue 1104103002: Add <meta viewport> support to the preloader (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: moved CachedDocumentParameters constructor to private Created 5 years, 8 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/html/HTMLMetaElement.h ('k') | Source/core/html/parser/HTMLDocumentParser.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 be3a86f59e85b6fafed9ec810fd8b63c25f823be..7c72b75ab2097ec159b175908564e76091825bd4 100644
--- a/Source/core/html/HTMLMetaElement-in.cpp
+++ b/Source/core/html/HTMLMetaElement-in.cpp
@@ -397,7 +397,7 @@ void HTMLMetaElement::reportViewportWarning(Document* document, ViewportErrorCod
document->addConsoleMessage(ConsoleMessage::create(RenderingMessageSource, viewportErrorMessageLevel(errorCode), message));
}
-void HTMLMetaElement::getViewportDescriptionFromContentAttribute(const String& content, ViewportDescription::Type origin, ViewportDescription& description, Document* document, bool viewportMetaZeroValuesQuirk)
+void HTMLMetaElement::getViewportDescriptionFromContentAttribute(const String& content, ViewportDescription& description, Document* document, bool viewportMetaZeroValuesQuirk)
{
parseContentAttribute(content, (void*)&description, document, viewportMetaZeroValuesQuirk);
@@ -420,7 +420,7 @@ void HTMLMetaElement::processViewportContentAttribute(const String& content, Vie
if (document().shouldMergeWithLegacyDescription(origin))
descriptionFromLegacyTag = document().viewportDescription();
- getViewportDescriptionFromContentAttribute(content, origin, descriptionFromLegacyTag, &document(), document().settings() && document().settings()->viewportMetaZeroValuesQuirk());
+ getViewportDescriptionFromContentAttribute(content, descriptionFromLegacyTag, &document(), document().settings() && document().settings()->viewportMetaZeroValuesQuirk());
document().setViewportDescription(descriptionFromLegacyTag);
}
« no previous file with comments | « Source/core/html/HTMLMetaElement.h ('k') | Source/core/html/parser/HTMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698