Index: core/css/CSSStyleDeclaration.idl |
diff --git a/core/css/CSSStyleDeclaration.idl b/core/css/CSSStyleDeclaration.idl |
index 1e7803afd3aee0ee2973aabbe425daa883dd1ba2..24fdfbb82bdee6a9d0905e8efd42c79a46506aac 100644 |
--- a/core/css/CSSStyleDeclaration.idl |
+++ b/core/css/CSSStyleDeclaration.idl |
@@ -18,29 +18,32 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
-// Introduced in DOM Level 2: |
+// http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface |
+ |
[ |
DependentLifetime, |
WillBeGarbageCollected |
] interface CSSStyleDeclaration { |
- [RaisesException=Setter] attribute DOMString? cssText; |
- |
- DOMString? getPropertyValue([Default=Undefined] optional DOMString propertyName); |
- [RaisesException] DOMString? removeProperty([Default=Undefined] optional DOMString propertyName); |
- DOMString? getPropertyPriority([Default=Undefined] optional DOMString propertyName); |
- [RaisesException] void setProperty([Default=Undefined] optional DOMString propertyName, |
- [Default=Undefined] optional DOMString? value, |
- optional DOMString? priority = null); |
+ // TODO(philipj): cssText should not be nullable. |
+ [RaisesException=Setter] attribute DOMString? cssText; |
+ readonly attribute unsigned long length; |
+ getter DOMString item(unsigned long index); |
+ // TODO(philipj): All DOMString? return types in this interface should be |
+ // just DOMString (not nullable). |
+ DOMString? getPropertyValue(DOMString property); |
+ DOMString? getPropertyPriority(DOMString property); |
+ // TODO(philipj): The value and priority arguments should have |
+ // [TreatNullAs=EmptyString] and should not be nullable. |
+ [RaisesException] void setProperty(DOMString property, DOMString? value, optional DOMString? priority = null); |
+ // void setPropertyValue(DOMString property, [TreatNullAs=EmptyString] DOMString value); |
+ // void setPropertyPriority(DOMString property, [TreatNullAs=EmptyString] DOMString priority); |
+ [RaisesException] DOMString? removeProperty(DOMString property); |
+ readonly attribute CSSRule? parentRule; |
+ // [TreatNullAs=EmptyString] attribute DOMString cssFloat; |
- readonly attribute unsigned long length; |
- getter DOMString item([Default=Undefined] optional unsigned long index); |
+ // The camel-cased and dashed attribute getters have custom bindings. |
+ // http://dev.w3.org/csswg/cssom/#dom-cssstyledeclaration-camel-cased-attribute |
+ // http://dev.w3.org/csswg/cssom/#dom-cssstyledeclaration-dashed-attribute |
[Custom=(PropertyGetter,PropertyEnumerator,PropertyQuery)] getter (DOMString or float) (DOMString name); |
- [Custom] setter void (DOMString propertyName, DOMString? propertyValue); |
- readonly attribute CSSRule parentRule; |
- |
- // Deprecated as of 2003: http://lists.w3.org/Archives/Public/www-style/2003Oct/0347.html |
- // FIXME: This should be DeprecateAs=, but currently too many LayoutTests use |
- // this function and would need CONSOLE: message rebaselines! |
- [MeasureAs=CSSStyleDeclarationGetPropertyCSSValue] CSSValue getPropertyCSSValue([Default=Undefined] optional DOMString propertyName); |
+ [Custom] setter void (DOMString property, DOMString? propertyValue); |
}; |
- |