Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 633911c9457d6a4a1a82ce7c0e0c1c3d876e8e17..65e74865116ab599b1d037c8f4ddda72602176e7 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -2928,6 +2928,9 @@ bool Document::shouldMergeWithLegacyDescription(ViewportDescription::Type origin |
void Document::setViewportDescription(const ViewportDescription& viewportDescription) |
{ |
if (viewportDescription.isLegacyViewportType()) { |
+ if (settings() && !settings()->viewportMetaEnabled()) |
+ return; |
+ |
m_legacyViewportDescription = viewportDescription; |
// When no author style for @viewport is present, and a meta tag for defining |