| Index: Source/core/css/CSSStyleSheet.cpp
|
| diff --git a/Source/core/css/CSSStyleSheet.cpp b/Source/core/css/CSSStyleSheet.cpp
|
| index c2a90d9c2f8059e4da547e4aaac3fca8ab5678b8..971b21f8b3f038adbe1a394c5125c4f6fae70019 100644
|
| --- a/Source/core/css/CSSStyleSheet.cpp
|
| +++ b/Source/core/css/CSSStyleSheet.cpp
|
| @@ -292,26 +292,26 @@ PassRefPtr<CSSRuleList> CSSStyleSheet::rules()
|
| return nonCharsetRules.release();
|
| }
|
|
|
| -unsigned CSSStyleSheet::insertRule(const String& ruleString, unsigned index, ExceptionState& es)
|
| +unsigned CSSStyleSheet::insertRule(const String& ruleString, unsigned index, ExceptionState& exceptionState)
|
| {
|
| ASSERT(m_childRuleCSSOMWrappers.isEmpty() || m_childRuleCSSOMWrappers.size() == m_contents->ruleCount());
|
|
|
| if (index > length()) {
|
| - es.throwUninformativeAndGenericDOMException(IndexSizeError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(IndexSizeError);
|
| return 0;
|
| }
|
| CSSParser p(m_contents->parserContext(), UseCounter::getFrom(this));
|
| RefPtr<StyleRuleBase> rule = p.parseRule(m_contents.get(), ruleString);
|
|
|
| if (!rule) {
|
| - es.throwUninformativeAndGenericDOMException(SyntaxError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(SyntaxError);
|
| return 0;
|
| }
|
| RuleMutationScope mutationScope(this);
|
|
|
| bool success = m_contents->wrapperInsertRule(rule, index);
|
| if (!success) {
|
| - es.throwUninformativeAndGenericDOMException(HierarchyRequestError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(HierarchyRequestError);
|
| return 0;
|
| }
|
| if (!m_childRuleCSSOMWrappers.isEmpty())
|
| @@ -320,12 +320,12 @@ unsigned CSSStyleSheet::insertRule(const String& ruleString, unsigned index, Exc
|
| return index;
|
| }
|
|
|
| -void CSSStyleSheet::deleteRule(unsigned index, ExceptionState& es)
|
| +void CSSStyleSheet::deleteRule(unsigned index, ExceptionState& exceptionState)
|
| {
|
| ASSERT(m_childRuleCSSOMWrappers.isEmpty() || m_childRuleCSSOMWrappers.size() == m_contents->ruleCount());
|
|
|
| if (index >= length()) {
|
| - es.throwUninformativeAndGenericDOMException(IndexSizeError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(IndexSizeError);
|
| return;
|
| }
|
| RuleMutationScope mutationScope(this);
|
| @@ -339,7 +339,7 @@ void CSSStyleSheet::deleteRule(unsigned index, ExceptionState& es)
|
| }
|
| }
|
|
|
| -int CSSStyleSheet::addRule(const String& selector, const String& style, int index, ExceptionState& es)
|
| +int CSSStyleSheet::addRule(const String& selector, const String& style, int index, ExceptionState& exceptionState)
|
| {
|
| StringBuilder text;
|
| text.append(selector);
|
| @@ -348,15 +348,15 @@ int CSSStyleSheet::addRule(const String& selector, const String& style, int inde
|
| if (!style.isEmpty())
|
| text.append(' ');
|
| text.append('}');
|
| - insertRule(text.toString(), index, es);
|
| + insertRule(text.toString(), index, exceptionState);
|
|
|
| // As per Microsoft documentation, always return -1.
|
| return -1;
|
| }
|
|
|
| -int CSSStyleSheet::addRule(const String& selector, const String& style, ExceptionState& es)
|
| +int CSSStyleSheet::addRule(const String& selector, const String& style, ExceptionState& exceptionState)
|
| {
|
| - return addRule(selector, style, length(), es);
|
| + return addRule(selector, style, length(), exceptionState);
|
| }
|
|
|
|
|
|
|