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

Unified Diff: Source/core/css/parser/CSSGrammar.y

Issue 756313002: Remove CSSCharsetRule (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests Created 6 years, 1 month 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 | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSGrammar.y
diff --git a/Source/core/css/parser/CSSGrammar.y b/Source/core/css/parser/CSSGrammar.y
index ad8fe0322cb396b3c127c4d5227c0745214ab703..7bfb57b7e018a42956d14636723957d9abd56569 100644
--- a/Source/core/css/parser/CSSGrammar.y
+++ b/Source/core/css/parser/CSSGrammar.y
@@ -466,24 +466,10 @@ semi_or_eof:
| TOKEN_EOF
;
-before_charset_rule:
- /* empty */ {
- parser->startRule();
- parser->startRuleHeader(CSSRuleSourceData::CHARSET_RULE);
- }
-
maybe_charset:
/* empty */
- | before_charset_rule CHARSET_SYM maybe_space STRING maybe_space semi_or_eof {
- if (parser->m_styleSheet)
- parser->m_styleSheet->parserSetEncodingFromCharsetRule($4);
- parser->endRuleHeader();
- parser->startRuleBody();
- parser->endRule(true);
- }
- | before_charset_rule CHARSET_SYM at_rule_recovery {
- parser->endRule(false);
- }
+ | CHARSET_SYM maybe_space STRING maybe_space semi_or_eof
+ | CHARSET_SYM at_rule_recovery
;
rule_list:
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698