| 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 class FilteredElementList implements ElementList { | 5 class FilteredElementList implements ElementList { |
| 6 final Node _node; | 6 final Node _node; |
| 7 final NodeList _childNodes; | 7 final NodeList _childNodes; |
| 8 | 8 |
| 9 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; | 9 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 class _FrozenCSSClassSet extends _CssClassSet { | 125 class _FrozenCSSClassSet extends _CssClassSet { |
| 126 _FrozenCSSClassSet() : super(null); | 126 _FrozenCSSClassSet() : super(null); |
| 127 | 127 |
| 128 void _write(Set s) { | 128 void _write(Set s) { |
| 129 throw const UnsupportedOperationException( | 129 throw const UnsupportedOperationException( |
| 130 'frozen class set cannot be modified'); | 130 'frozen class set cannot be modified'); |
| 131 } | 131 } |
| 132 Set<String> _read() => new Set<String>(); | 132 Set<String> _read() => new Set<String>(); |
| 133 | 133 |
| 134 bool get isFrozen => true; | 134 bool get frozen => true; |
| 135 } | 135 } |
| 136 | 136 |
| 137 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 137 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 138 ElementList _elements; | 138 ElementList _elements; |
| 139 | 139 |
| 140 ElementList get elements { | 140 ElementList get elements { |
| 141 if (_elements == null) { | 141 if (_elements == null) { |
| 142 _elements = new FilteredElementList(this); | 142 _elements = new FilteredElementList(this); |
| 143 } | 143 } |
| 144 return _elements; | 144 return _elements; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 "WebKit drop zone can't be set for document fragments."); | 352 "WebKit drop zone can't be set for document fragments."); |
| 353 } | 353 } |
| 354 | 354 |
| 355 void set webkitRegionOverflow(String value) { | 355 void set webkitRegionOverflow(String value) { |
| 356 throw new UnsupportedOperationException( | 356 throw new UnsupportedOperationException( |
| 357 "WebKit region overflow can't be set for document fragments."); | 357 "WebKit region overflow can't be set for document fragments."); |
| 358 } | 358 } |
| 359 | 359 |
| 360 $!MEMBERS | 360 $!MEMBERS |
| 361 } | 361 } |
| OLD | NEW |