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

Unified Diff: Source/core/css/RuleSet.cpp

Issue 19555002: Translate viewport related meta tags into @viewport descriptors as suggested by the CSS Device Adap… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/css/RuleSet.cpp
diff --git a/Source/core/css/RuleSet.cpp b/Source/core/css/RuleSet.cpp
index e6941096cfb64b7e23952bb22cc0b81178052d12..0e044e37ae14029f31cb5920d6b38df2a26ef091 100644
--- a/Source/core/css/RuleSet.cpp
+++ b/Source/core/css/RuleSet.cpp
@@ -393,8 +393,7 @@ void RuleSet::addChildRules(const Vector<RefPtr<StyleRuleBase> >& rules, const M
resolver->setBuildScopedStyleTreeInDocumentOrder(false);
resolver->ensureScopedStyleResolver(scope->shadowHost())->addHostRule(static_cast<StyleRuleHost*>(rule), hasDocumentSecurityOrigin, scope);
resolver->setBuildScopedStyleTreeInDocumentOrder(enabled);
- } else if (RuntimeEnabledFeatures::cssViewportEnabled() && rule->isViewportRule()) {
- // @viewport should not be scoped.
+ } else if (rule->isViewportRule()) {
if (!isDocumentScope(scope))
continue;
addViewportRule(static_cast<StyleRuleViewport*>(rule));

Powered by Google App Engine
This is Rietveld 408576698