| 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 StyleSheetWrappingImplementati
on implements CSSStyleSheet { | 7 class CSSStyleSheetWrappingImplementation extends StyleSheetWrappingImplementati
on implements CSSStyleSheet { |
| 8 CSSStyleSheetWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 8 CSSStyleSheetWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 9 |
| 10 CSSRuleList get cssRules() { return LevelDom.wrapCSSRuleList(_ptr.cssRules); } | 10 CSSRuleList get cssRules() { return LevelDom.wrapCSSRuleList(_ptr.cssRules); } |
| 11 | 11 |
| 12 CSSRule get ownerRule() { return LevelDom.wrapCSSRule(_ptr.ownerRule); } | 12 CSSRule get ownerRule() { return LevelDom.wrapCSSRule(_ptr.ownerRule); } |
| 13 | 13 |
| 14 CSSRuleList get rules() { return LevelDom.wrapCSSRuleList(_ptr.rules); } | 14 CSSRuleList get rules() { return LevelDom.wrapCSSRuleList(_ptr.rules); } |
| 15 | 15 |
| 16 int addRule(String selector, String style, [int index = null]) { | 16 int addRule(String selector, String style, [int index]) { |
| 17 if (index === null) { | 17 if (index === null) { |
| 18 return _ptr.addRule(selector, style); | 18 return _ptr.addRule(selector, style); |
| 19 } else { | 19 } else { |
| 20 return _ptr.addRule(selector, style, index); | 20 return _ptr.addRule(selector, style, index); |
| 21 } | 21 } |
| 22 } | 22 } |
| 23 | 23 |
| 24 void deleteRule(int index) { | 24 void deleteRule(int index) { |
| 25 _ptr.deleteRule(index); | 25 _ptr.deleteRule(index); |
| 26 return; | 26 return; |
| 27 } | 27 } |
| 28 | 28 |
| 29 int insertRule(String rule, int index) { | 29 int insertRule(String rule, int index) { |
| 30 return _ptr.insertRule(rule, index); | 30 return _ptr.insertRule(rule, index); |
| 31 } | 31 } |
| 32 | 32 |
| 33 void removeRule(int index) { | 33 void removeRule(int index) { |
| 34 _ptr.removeRule(index); | 34 _ptr.removeRule(index); |
| 35 return; | 35 return; |
| 36 } | 36 } |
| 37 } | 37 } |
| OLD | NEW |