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

Unified Diff: Source/core/css/CSSStyleSheet.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, 5 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/CSSStyleSheet.cpp
diff --git a/Source/core/css/CSSStyleSheet.cpp b/Source/core/css/CSSStyleSheet.cpp
index 735485fecb889c402101315f482ae52469233c47..9e02f442fe7ba8a7bb847e2989a8461359529cb1 100644
--- a/Source/core/css/CSSStyleSheet.cpp
+++ b/Source/core/css/CSSStyleSheet.cpp
@@ -71,6 +71,7 @@ static bool isAcceptableCSSStyleSheetParent(Node* parentNode)
|| parentNode->hasTagName(HTMLNames::linkTag)
|| parentNode->hasTagName(HTMLNames::styleTag)
|| parentNode->hasTagName(SVGNames::styleTag)
+ || parentNode->hasTagName(HTMLNames::metaTag)
|| parentNode->nodeType() == Node::PROCESSING_INSTRUCTION_NODE;
}
#endif
@@ -287,7 +288,7 @@ unsigned CSSStyleSheet::insertRule(const String& ruleString, unsigned index, Exc
if (!success) {
ec = HierarchyRequestError;
return 0;
- }
+ }
if (!m_childRuleCSSOMWrappers.isEmpty())
m_childRuleCSSOMWrappers.insert(index, RefPtr<CSSRule>());

Powered by Google App Engine
This is Rietveld 408576698