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/CSSStyleDeclaration.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/css/CSSStyleDeclaration.idl')
-rw-r--r-- | Source/WebCore/css/CSSStyleDeclaration.idl | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/Source/WebCore/css/CSSStyleDeclaration.idl b/Source/WebCore/css/CSSStyleDeclaration.idl index a9bdc54fc..54cb55eda 100644 --- a/Source/WebCore/css/CSSStyleDeclaration.idl +++ b/Source/WebCore/css/CSSStyleDeclaration.idl @@ -18,32 +18,33 @@ * Boston, MA 02110-1301, USA. */ -// Introduced in DOM Level 2: [ - JSCustomHeader, - JSCustomMarkFunction, + CustomEnumerateProperty, + CustomNamedSetter, + ExportMacro=WEBCORE_EXPORT, GenerateIsReachable, JSCustomGetOwnPropertySlotAndDescriptor, - CustomNamedSetter, - CustomEnumerateProperty, + JSCustomHeader, + JSCustomMarkFunction, SkipVTableValidation, ] interface CSSStyleDeclaration { - [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, SetterRaisesException] attribute DOMString cssText; + [CEReactions, SetterMayThrowException] attribute DOMString cssText; - [TreatReturnedNullStringAs=Null] DOMString getPropertyValue([Default=Undefined] optional DOMString propertyName); - [Custom] CSSValue getPropertyCSSValue([Default=Undefined] optional DOMString propertyName); - [TreatReturnedNullStringAs=Null, RaisesException] DOMString removeProperty([Default=Undefined] optional DOMString propertyName); - [TreatReturnedNullStringAs=Null] DOMString getPropertyPriority([Default=Undefined] optional DOMString propertyName); - [ObjCLegacyUnnamedParameters, RaisesException] void setProperty([Default=Undefined] optional DOMString propertyName, - [TreatNullAs=NullString, Default=Undefined] optional DOMString value, - [Default=Undefined] optional DOMString priority); + DOMString getPropertyValue(DOMString propertyName); - readonly attribute unsigned long length; - getter DOMString item([Default=Undefined] optional unsigned long index); - readonly attribute CSSRule parentRule; + // This method is deprecated, and we would like to drop support for it someday + [Custom] DeprecatedCSSOMValue? getPropertyCSSValue(DOMString propertyName); - // Extensions - [TreatReturnedNullStringAs=Null] DOMString getPropertyShorthand([Default=Undefined] optional DOMString propertyName); - boolean isPropertyImplicit([Default=Undefined] optional DOMString propertyName); -}; + [CEReactions, MayThrowException] DOMString removeProperty(DOMString propertyName); + DOMString? getPropertyPriority(DOMString propertyName); + [CEReactions, MayThrowException] void setProperty(DOMString propertyName, [TreatNullAs=EmptyString] DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = ""); + + readonly attribute unsigned long length; + getter DOMString item(unsigned long index); + readonly attribute CSSRule? parentRule; + + // FIXME: Using "undefined" as default parameter value is wrong. + DOMString? getPropertyShorthand(optional DOMString propertyName = "undefined"); + boolean isPropertyImplicit(optional DOMString propertyName = "undefined"); +}; |