| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _CSSStyleSheetWrappingImplementation extends _StyleSheetWrappingImplementa
tion implements CSSStyleSheet { | 7 class _CSSStyleSheetWrappingImplementation extends _StyleSheetWrappingImplementa
tion implements CSSStyleSheet { |
| 8 _CSSStyleSheetWrappingImplementation() : super() {} | 8 _CSSStyleSheetWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__CSSStyleSheetWrappingImplementation() native { | 10 static create__CSSStyleSheetWrappingImplementation() native { |
| 11 return new _CSSStyleSheetWrappingImplementation(); | 11 return new _CSSStyleSheetWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 CSSRuleList get cssRules() { return _get__CSSStyleSheet_cssRules(this); } | 14 CSSRuleList get cssRules() { return _get_cssRules(this); } |
| 15 static CSSRuleList _get__CSSStyleSheet_cssRules(var _this) native; | 15 static CSSRuleList _get_cssRules(var _this) native; |
| 16 | 16 |
| 17 CSSRule get ownerRule() { return _get__CSSStyleSheet_ownerRule(this); } | 17 CSSRule get ownerRule() { return _get_ownerRule(this); } |
| 18 static CSSRule _get__CSSStyleSheet_ownerRule(var _this) native; | 18 static CSSRule _get_ownerRule(var _this) native; |
| 19 | 19 |
| 20 CSSRuleList get rules() { return _get__CSSStyleSheet_rules(this); } | 20 CSSRuleList get rules() { return _get_rules(this); } |
| 21 static CSSRuleList _get__CSSStyleSheet_rules(var _this) native; | 21 static CSSRuleList _get_rules(var _this) native; |
| 22 | 22 |
| 23 int addRule(String selector, String style, [int index = null]) { | 23 int addRule(String selector, String style, [int index = null]) { |
| 24 if (index === null) { | 24 if (index === null) { |
| 25 return _addRule(this, selector, style); | 25 return _addRule(this, selector, style); |
| 26 } else { | 26 } else { |
| 27 return _addRule_2(this, selector, style, index); | 27 return _addRule_2(this, selector, style, index); |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 static int _addRule(receiver, selector, style) native; | 30 static int _addRule(receiver, selector, style) native; |
| 31 static int _addRule_2(receiver, selector, style, index) native; | 31 static int _addRule_2(receiver, selector, style, index) native; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 42 static int _insertRule(receiver, rule, index) native; | 42 static int _insertRule(receiver, rule, index) native; |
| 43 | 43 |
| 44 void removeRule(int index) { | 44 void removeRule(int index) { |
| 45 _removeRule(this, index); | 45 _removeRule(this, index); |
| 46 return; | 46 return; |
| 47 } | 47 } |
| 48 static void _removeRule(receiver, index) native; | 48 static void _removeRule(receiver, index) native; |
| 49 | 49 |
| 50 String get typeName() { return "CSSStyleSheet"; } | 50 String get typeName() { return "CSSStyleSheet"; } |
| 51 } | 51 } |
| OLD | NEW |