| Index: Source/core/css/CSSGroupingRule.cpp
|
| diff --git a/Source/core/css/CSSGroupingRule.cpp b/Source/core/css/CSSGroupingRule.cpp
|
| index 46ba25bad258ea665767db2a1d0c86a679ccaca4..a9453d0a5523294c48d7fa0559d83f4642949b6d 100644
|
| --- a/Source/core/css/CSSGroupingRule.cpp
|
| +++ b/Source/core/css/CSSGroupingRule.cpp
|
| @@ -73,14 +73,14 @@ unsigned CSSGroupingRule::insertRule(const String& ruleString, unsigned index, E
|
| CSSParser parser(parserContext(), UseCounter::getFrom(styleSheet));
|
| RefPtr<StyleRuleBase> newRule = parser.parseRule(styleSheet ? styleSheet->contents() : 0, ruleString);
|
| if (!newRule) {
|
| - // SYNTAX_ERR: Raised if the specified rule has a syntax error and is unparsable.
|
| - ec = SYNTAX_ERR;
|
| + // SyntaxError: Raised if the specified rule has a syntax error and is unparsable.
|
| + ec = SyntaxError;
|
| return 0;
|
| }
|
|
|
| if (newRule->isImportRule()) {
|
| // FIXME: an HierarchyRequestError should also be thrown for a @charset or a nested
|
| - // @media rule. They are currently not getting parsed, resulting in a SYNTAX_ERR
|
| + // @media rule. They are currently not getting parsed, resulting in a SyntaxError
|
| // to get raised above.
|
|
|
| // HierarchyRequestError: Raised if the rule cannot be inserted at the specified
|
|
|