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(); |
} |