Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: core/css/CSSStyleDeclaration.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/css/CSSRuleList.idl ('k') | core/css/CSSStyleRule.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
-
« no previous file with comments | « core/css/CSSRuleList.idl ('k') | core/css/CSSStyleRule.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698