| Index: Source/core/css/CSSStyleSheet.cpp
|
| ===================================================================
|
| --- Source/core/css/CSSStyleSheet.cpp (revision 162716)
|
| +++ Source/core/css/CSSStyleSheet.cpp (working copy)
|
| @@ -35,6 +35,7 @@
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/dom/Node.h"
|
| +#include "core/page/UseCounter.h"
|
| #include "weborigin/SecurityOrigin.h"
|
| #include "wtf/text/StringBuilder.h"
|
|
|
| @@ -317,6 +318,12 @@
|
| return index;
|
| }
|
|
|
| +unsigned CSSStyleSheet::insertRule(const String& rule, ExceptionState& exceptionState)
|
| +{
|
| + UseCounter::countDeprecation(activeExecutionContext(), UseCounter::CSSStyleSheetInsertRuleOptionalArg);
|
| + return insertRule(rule, 0, exceptionState);
|
| +}
|
| +
|
| void CSSStyleSheet::deleteRule(unsigned index, ExceptionState& es)
|
| {
|
| ASSERT(m_childRuleCSSOMWrappers.isEmpty() || m_childRuleCSSOMWrappers.size() == m_contents->ruleCount());
|
|
|