Index: Source/core/css/CSSStyleSheet.h |
diff --git a/Source/core/css/CSSStyleSheet.h b/Source/core/css/CSSStyleSheet.h |
index 176061f5a7de7036a84c85d8d61b3473751ba071..2b91f05806a427842d2b35ae4177f3bdd1af37f5 100644 |
--- a/Source/core/css/CSSStyleSheet.h |
+++ b/Source/core/css/CSSStyleSheet.h |
@@ -21,6 +21,7 @@ |
#ifndef CSSStyleSheet_h |
#define CSSStyleSheet_h |
+#include "bindings/core/v8/Optional.h" |
#include "core/css/CSSRule.h" |
#include "core/css/StyleSheet.h" |
#include "platform/heap/Handle.h" |
@@ -71,8 +72,7 @@ public: |
// IE Extensions |
PassRefPtrWillBeRawPtr<CSSRuleList> rules(); |
- int addRule(const String& selector, const String& style, int index, ExceptionState&); |
- int addRule(const String& selector, const String& style, ExceptionState&); |
+ int addRule(const String& selector, const String& style, Optional<int> index, ExceptionState&); |
void removeRule(unsigned index, ExceptionState& exceptionState) { deleteRule(index, exceptionState); } |
// For CSSRuleList. |