diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/css/CSSStyleSheet.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/css/CSSStyleSheet.idl')
-rw-r--r-- | Source/WebCore/css/CSSStyleSheet.idl | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/Source/WebCore/css/CSSStyleSheet.idl b/Source/WebCore/css/CSSStyleSheet.idl index d02132f5f..0ceb415b7 100644 --- a/Source/WebCore/css/CSSStyleSheet.idl +++ b/Source/WebCore/css/CSSStyleSheet.idl @@ -18,21 +18,18 @@ * Boston, MA 02110-1301, USA. */ -// Introduced in DOM Level 2: interface CSSStyleSheet : StyleSheet { - readonly attribute CSSRule ownerRule; - readonly attribute CSSRuleList cssRules; + readonly attribute CSSRule ownerRule; + readonly attribute CSSRuleList cssRules; - [ObjCLegacyUnnamedParameters, RaisesException] unsigned long insertRule([Default=Undefined] optional DOMString rule, - [Default=Undefined] optional unsigned long index); - [RaisesException] void deleteRule([Default=Undefined] optional unsigned long index); + [MayThrowException] unsigned long insertRule(DOMString rule, unsigned long index); + [MayThrowException, ImplementedAs=deprecatedInsertRule] unsigned long insertRule(DOMString rule); // Deprecated. - // IE Extensions - readonly attribute CSSRuleList rules; + [MayThrowException] void deleteRule(unsigned long index); - [RaisesException] long addRule([Default=Undefined] optional DOMString selector, - [Default=Undefined] optional DOMString style, - optional unsigned long index); - [RaisesException] void removeRule([Default=Undefined] optional unsigned long index); -}; + readonly attribute CSSRuleList rules; + // The following two operations are WebKit-specific. + [MayThrowException] long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index); + [MayThrowException] void removeRule(optional unsigned long index = 0); +}; |