| 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:
|
|
|