mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-05-26 20:03:46 +00:00
Issue #1304 - Make the second arg of insertRule optional
This commit is contained in:
@@ -14,7 +14,7 @@ interface nsIDOMCSSGroupingRule : nsIDOMCSSRule
|
||||
readonly attribute nsIDOMCSSRuleList cssRules;
|
||||
|
||||
unsigned long insertRule(in DOMString rule,
|
||||
in unsigned long index)
|
||||
[optional] in unsigned long index)
|
||||
raises(DOMException);
|
||||
void deleteRule(in unsigned long index)
|
||||
raises(DOMException);
|
||||
|
||||
@@ -20,7 +20,7 @@ interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
|
||||
readonly attribute nsIDOMCSSRuleList cssRules;
|
||||
|
||||
unsigned long insertRule(in DOMString rule,
|
||||
in unsigned long index)
|
||||
[optional] in unsigned long index)
|
||||
raises(DOMException);
|
||||
void deleteRule(in unsigned long index)
|
||||
raises(DOMException);
|
||||
|
||||
@@ -23,7 +23,7 @@ interface CSSStyleSheet : StyleSheet {
|
||||
[ChromeOnly, BinaryName="parsingModeDOM"]
|
||||
readonly attribute CSSStyleSheetParsingMode parsingMode;
|
||||
[Throws, NeedsSubjectPrincipal]
|
||||
unsigned long insertRule(DOMString rule, unsigned long index);
|
||||
unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
|
||||
[Throws, NeedsSubjectPrincipal]
|
||||
void deleteRule(unsigned long index);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user