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

Unified Diff: Source/core/css/DocumentRuleSets.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/DocumentRuleSets.cpp
diff --git a/Source/core/css/DocumentRuleSets.cpp b/Source/core/css/DocumentRuleSets.cpp
index ca2cc211b42223f11f531972cb2f7d88b4bdef6a..a06cc2ad55fdeb20788f79c7b7fe66366defe794 100644
--- a/Source/core/css/DocumentRuleSets.cpp
+++ b/Source/core/css/DocumentRuleSets.cpp
@@ -81,7 +81,7 @@ void DocumentRuleSets::initUserStyle(DocumentStyleSheetCollection* styleSheetCol
tempUserStyle->addRulesFromSheet(pageUserSheet->contents(), medium, &resolver);
collectRulesFromUserStyleSheets(styleSheetCollection->injectedUserStyleSheets(), *tempUserStyle, medium, resolver);
collectRulesFromUserStyleSheets(styleSheetCollection->documentUserStyleSheets(), *tempUserStyle, medium, resolver);
- if (tempUserStyle->ruleCount() > 0 || tempUserStyle->pageRules().size() > 0)
+ if (tempUserStyle->ruleCount() > 0 || tempUserStyle->pageRules().size() > 0 || tempUserStyle->viewportRules().size() > 0)
m_userStyle = tempUserStyle.release();
}

Powered by Google App Engine
This is Rietveld 408576698