| Index: Source/core/html/parser/HTMLPreloadScanner.cpp
|
| diff --git a/Source/core/html/parser/HTMLPreloadScanner.cpp b/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| index c23d9483c2ddb4a2e8522eb8880b8bb0696c86fb..ce827eea14930617ef8a4b290dead20664eee27b 100644
|
| --- a/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| +++ b/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| @@ -436,6 +436,8 @@ void TokenPreloadScanner::scan(const CompactHTMLToken& token, const SegmentedStr
|
|
|
| static void handleMetaViewport(const String& attributeValue, CachedDocumentParameters* documentParameters)
|
| {
|
| + if (!documentParameters->viewportMetaEnabled)
|
| + return;
|
| ViewportDescription description(ViewportDescription::ViewportMeta);
|
| HTMLMetaElement::getViewportDescriptionFromContentAttribute(attributeValue, description, nullptr, documentParameters->viewportMetaZeroValuesQuirk);
|
| FloatSize initialViewport(documentParameters->mediaValues->viewportHeight(), documentParameters->mediaValues->viewportWidth());
|
| @@ -601,6 +603,7 @@ CachedDocumentParameters::CachedDocumentParameters(Document* document, PassRefPt
|
| ASSERT(mediaValues->isSafeToSendToAnotherThread());
|
| defaultViewportMinWidth = document->viewportDefaultMinWidth();
|
| viewportMetaZeroValuesQuirk = document->settings() && document->settings()->viewportMetaZeroValuesQuirk();
|
| + viewportMetaEnabled = document->settings() && document->settings()->viewportMetaEnabled();
|
| }
|
|
|
| }
|
|
|