| Index: Source/core/css/CSSGroupingRule.cpp
|
| diff --git a/Source/core/css/CSSGroupingRule.cpp b/Source/core/css/CSSGroupingRule.cpp
|
| index b858baa393625806a99fba4ea18acdf7a3a39d8b..1fbc5f818c7728d89e37790e221e708b5f753dcb 100644
|
| --- a/Source/core/css/CSSGroupingRule.cpp
|
| +++ b/Source/core/css/CSSGroupingRule.cpp
|
| @@ -58,12 +58,12 @@ CSSGroupingRule::~CSSGroupingRule()
|
| }
|
| }
|
|
|
| -unsigned CSSGroupingRule::insertRule(const String& ruleString, unsigned index, ExceptionState& es)
|
| +unsigned CSSGroupingRule::insertRule(const String& ruleString, unsigned index, ExceptionState& exceptionState)
|
| {
|
| ASSERT(m_childRuleCSSOMWrappers.size() == m_groupRule->childRules().size());
|
|
|
| if (index > m_groupRule->childRules().size()) {
|
| - es.throwDOMException(IndexSizeError, ExceptionMessages::failedToExecute("insertRule", "CSSGroupingRule", "the index " + String::number(index) + " must be less than or equal to the length of the rule list."));
|
| + exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::failedToExecute("insertRule", "CSSGroupingRule", "the index " + String::number(index) + " must be less than or equal to the length of the rule list."));
|
| return 0;
|
| }
|
|
|
| @@ -71,7 +71,7 @@ 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) {
|
| - es.throwDOMException(SyntaxError, ExceptionMessages::failedToExecute("insertRule", "CSSGroupingRule", "the rule '" + ruleString + "' is invalid and cannot be parsed."));
|
| + exceptionState.throwDOMException(SyntaxError, ExceptionMessages::failedToExecute("insertRule", "CSSGroupingRule", "the rule '" + ruleString + "' is invalid and cannot be parsed."));
|
| return 0;
|
| }
|
|
|
| @@ -79,7 +79,7 @@ unsigned CSSGroupingRule::insertRule(const String& ruleString, unsigned index, E
|
| // FIXME: an HierarchyRequestError should also be thrown for a @charset or a nested
|
| // @media rule. They are currently not getting parsed, resulting in a SyntaxError
|
| // to get raised above.
|
| - es.throwDOMException(HierarchyRequestError, ExceptionMessages::failedToExecute("insertRule", "CSSGroupingRule", "'@import' rules cannot be inserted inside a group rule."));
|
| + exceptionState.throwDOMException(HierarchyRequestError, ExceptionMessages::failedToExecute("insertRule", "CSSGroupingRule", "'@import' rules cannot be inserted inside a group rule."));
|
| return 0;
|
| }
|
| CSSStyleSheet::RuleMutationScope mutationScope(this);
|
| @@ -90,12 +90,12 @@ unsigned CSSGroupingRule::insertRule(const String& ruleString, unsigned index, E
|
| return index;
|
| }
|
|
|
| -void CSSGroupingRule::deleteRule(unsigned index, ExceptionState& es)
|
| +void CSSGroupingRule::deleteRule(unsigned index, ExceptionState& exceptionState)
|
| {
|
| ASSERT(m_childRuleCSSOMWrappers.size() == m_groupRule->childRules().size());
|
|
|
| if (index >= m_groupRule->childRules().size()) {
|
| - es.throwDOMException(IndexSizeError, ExceptionMessages::failedToExecute("deleteRule", "CSSGroupingRule", "the index " + String::number(index) + " is greated than the length of the rule list."));
|
| + exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::failedToExecute("deleteRule", "CSSGroupingRule", "the index " + String::number(index) + " is greated than the length of the rule list."));
|
| return;
|
| }
|
|
|
|
|