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

Unified Diff: core/css/CSSStyleSheet.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/CSSStyleRule.idl ('k') | core/css/CSSSupportsRule.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/css/CSSStyleSheet.idl
diff --git a/core/css/CSSStyleSheet.idl b/core/css/CSSStyleSheet.idl
index 71619f33e455d528f3f75adc68011128830fe19a..0f9254a5abb07b4353879511da290dec2446c1e6 100644
--- a/core/css/CSSStyleSheet.idl
+++ b/core/css/CSSStyleSheet.idl
@@ -18,21 +18,19 @@
* Boston, MA 02110-1301, USA.
*/
-// Introduced in DOM Level 2:
+// http://dev.w3.org/csswg/cssom/#the-cssstylesheet-interface
+
[
SetWrapperReferenceFrom=ownerNode,
] interface CSSStyleSheet : StyleSheet {
- readonly attribute CSSRule ownerRule;
- readonly attribute CSSRuleList cssRules;
-
+ readonly attribute CSSRule? ownerRule;
+ [SameObject] readonly attribute CSSRuleList cssRules;
+ // TODO(philipj): The index argument should not be optional. crbug.com/319695
[RaisesException] unsigned long insertRule(DOMString rule, optional unsigned long index);
[RaisesException] void deleteRule(unsigned long index);
- // IE Extensions
+ // Non-standard APIs
[MeasureAs=CSSStyleSheetRules] readonly attribute CSSRuleList rules;
-
- [RaisesException, MeasureAs=CSSStyleSheetAddRule] long addRule([Default=Undefined] optional DOMString selector,
- [Default=Undefined] optional DOMString style,
- optional unsigned long index);
- [RaisesException, MeasureAs=CSSStyleSheetRemoveRule] void removeRule([Default=Undefined] optional unsigned long index);
+ [MeasureAs=CSSStyleSheetAddRule, RaisesException] long addRule([Default=Undefined] optional DOMString selector, [Default=Undefined] optional DOMString style, optional unsigned long index);
+ [MeasureAs=CSSStyleSheetRemoveRule, RaisesException] void removeRule([Default=Undefined] optional unsigned long index);
};
« no previous file with comments | « core/css/CSSStyleRule.idl ('k') | core/css/CSSSupportsRule.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698