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

Side by Side Diff: lib/html/templates/html/impl/impl_DocumentFragment.darttemplate

Issue 10993006: Changing CSSClassSet from isFrozen to frozen for API consistency. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | lib/html/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698