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

Unified Diff: Source/core/css/parser/CSSParser.cpp

Issue 799003003: CSS Parser: Implement parseRule (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@attoken
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | Source/core/css/parser/CSSParserImpl.h » ('j') | Source/core/css/parser/CSSParserImpl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSParser.cpp
diff --git a/Source/core/css/parser/CSSParser.cpp b/Source/core/css/parser/CSSParser.cpp
index e0ec43d22b33dc96d471ace610f5cbeb7d95fb4b..46a4e60575ecc8b5d83977f681da4873ad52e867 100644
--- a/Source/core/css/parser/CSSParser.cpp
+++ b/Source/core/css/parser/CSSParser.cpp
@@ -42,6 +42,8 @@ void CSSParser::parseSelector(const String& selector, CSSSelectorList& selectorL
PassRefPtrWillBeRawPtr<StyleRuleBase> CSSParser::parseRule(const CSSParserContext& context, StyleSheetContents* styleSheet, const String& rule)
{
+ if (RuntimeEnabledFeatures::newCSSParserEnabled())
+ return CSSParserImpl::parseRule(rule, context);
return BisonCSSParser(context).parseRule(styleSheet, rule);
}
« no previous file with comments | « no previous file | Source/core/css/parser/CSSParserImpl.h » ('j') | Source/core/css/parser/CSSParserImpl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698