| Index: Source/core/css/CSSStyleSheet.cpp
|
| diff --git a/Source/core/css/CSSStyleSheet.cpp b/Source/core/css/CSSStyleSheet.cpp
|
| index 1f6e6e7e3c24f17d6051c7c2811bb57298373378..05e3b212dc3c2a58cbd54bad508a09cee7a4b1b2 100644
|
| --- a/Source/core/css/CSSStyleSheet.cpp
|
| +++ b/Source/core/css/CSSStyleSheet.cpp
|
| @@ -250,21 +250,21 @@ unsigned CSSStyleSheet::insertRule(const String& ruleString, unsigned index, Exc
|
| ASSERT(m_childRuleCSSOMWrappers.isEmpty() || m_childRuleCSSOMWrappers.size() == m_contents->ruleCount());
|
|
|
| if (index > length()) {
|
| - es.throwDOMException(IndexSizeError);
|
| + es.throwUninformativeAndGenericDOMException(IndexSizeError);
|
| return 0;
|
| }
|
| CSSParser p(m_contents->parserContext(), UseCounter::getFrom(this));
|
| RefPtr<StyleRuleBase> rule = p.parseRule(m_contents.get(), ruleString);
|
|
|
| if (!rule) {
|
| - es.throwDOMException(SyntaxError);
|
| + es.throwUninformativeAndGenericDOMException(SyntaxError);
|
| return 0;
|
| }
|
| RuleMutationScope mutationScope(this);
|
|
|
| bool success = m_contents->wrapperInsertRule(rule, index);
|
| if (!success) {
|
| - es.throwDOMException(HierarchyRequestError);
|
| + es.throwUninformativeAndGenericDOMException(HierarchyRequestError);
|
| return 0;
|
| }
|
| if (!m_childRuleCSSOMWrappers.isEmpty())
|
| @@ -278,7 +278,7 @@ void CSSStyleSheet::deleteRule(unsigned index, ExceptionState& es)
|
| ASSERT(m_childRuleCSSOMWrappers.isEmpty() || m_childRuleCSSOMWrappers.size() == m_contents->ruleCount());
|
|
|
| if (index >= length()) {
|
| - es.throwDOMException(IndexSizeError);
|
| + es.throwUninformativeAndGenericDOMException(IndexSizeError);
|
| return;
|
| }
|
| RuleMutationScope mutationScope(this);
|
|
|