| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 class CSSStyleSheetWrappingImplementation extends StyleSheetWrappingImplementati
on implements CSSStyleSheet { | |
| 8 CSSStyleSheetWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9 | |
| 10 CSSRuleList get cssRules() { return LevelDom.wrapCSSRuleList(_ptr.cssRules); } | |
| 11 | |
| 12 CSSRule get ownerRule() { return LevelDom.wrapCSSRule(_ptr.ownerRule); } | |
| 13 | |
| 14 CSSRuleList get rules() { return LevelDom.wrapCSSRuleList(_ptr.rules); } | |
| 15 | |
| 16 int addRule(String selector, String style, [int index]) { | |
| 17 if (index === null) { | |
| 18 return _ptr.addRule(selector, style); | |
| 19 } else { | |
| 20 return _ptr.addRule(selector, style, index); | |
| 21 } | |
| 22 } | |
| 23 | |
| 24 void deleteRule(int index) { | |
| 25 _ptr.deleteRule(index); | |
| 26 return; | |
| 27 } | |
| 28 | |
| 29 int insertRule(String rule, int index) { | |
| 30 return _ptr.insertRule(rule, index); | |
| 31 } | |
| 32 | |
| 33 void removeRule(int index) { | |
| 34 _ptr.removeRule(index); | |
| 35 return; | |
| 36 } | |
| 37 } | |
| OLD | NEW |