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

Side by Side Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 19462015: Adjust FF test status for moz-box-sizing, and fix type error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 class _ChildrenElementList extends ListBase<Element> { 7 class _ChildrenElementList extends ListBase<Element> {
8 // Raw Element. 8 // Raw Element.
9 final Element _element; 9 final Element _element;
10 final HtmlCollection _childElements; 10 final HtmlCollection _childElements;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // TODO(jacobr): this is an inefficient implementation but it is hard to see 237 // TODO(jacobr): this is an inefficient implementation but it is hard to see
238 // a better option given that we cannot quite force NodeList to be an 238 // a better option given that we cannot quite force NodeList to be an
239 // ElementList as there are valid cases where a NodeList JavaScript object 239 // ElementList as there are valid cases where a NodeList JavaScript object
240 // contains Node objects that are not Elements. 240 // contains Node objects that are not Elements.
241 class _FrozenElementList<T extends Element> extends ListBase<T> implements Eleme ntList { 241 class _FrozenElementList<T extends Element> extends ListBase<T> implements Eleme ntList {
242 final List<Node> _nodeList; 242 final List<Node> _nodeList;
243 // The subset of _nodeList that are Elements. 243 // The subset of _nodeList that are Elements.
244 List<Element> _elementList; 244 List<Element> _elementList;
245 245
246 _FrozenElementList._wrap(this._nodeList) { 246 _FrozenElementList._wrap(this._nodeList) {
247 _elementList = _nodeList.where((e) => e is Element); 247 _elementList = _nodeList.where((e) => e is Element).toList();
248 } 248 }
249 249
250 int get length => _nodeList.length; 250 int get length => _nodeList.length;
251 251
252 Element operator [](int index) => _nodeList[index]; 252 Element operator [](int index) => _nodeList[index];
253 253
254 void operator []=(int index, Element value) { 254 void operator []=(int index, Element value) {
255 throw new UnsupportedError('Cannot modify list'); 255 throw new UnsupportedError('Cannot modify list');
256 } 256 }
257 257
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 const ScrollAlignment._internal(this._value); 1206 const ScrollAlignment._internal(this._value);
1207 toString() => 'ScrollAlignment.$_value'; 1207 toString() => 'ScrollAlignment.$_value';
1208 1208
1209 /// Attempt to align the element to the top of the scrollable area. 1209 /// Attempt to align the element to the top of the scrollable area.
1210 static const TOP = const ScrollAlignment._internal('TOP'); 1210 static const TOP = const ScrollAlignment._internal('TOP');
1211 /// Attempt to center the element in the scrollable area. 1211 /// Attempt to center the element in the scrollable area.
1212 static const CENTER = const ScrollAlignment._internal('CENTER'); 1212 static const CENTER = const ScrollAlignment._internal('CENTER');
1213 /// Attempt to align the element to the bottom of the scrollable area. 1213 /// Attempt to align the element to the bottom of the scrollable area.
1214 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1214 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1215 } 1215 }
OLDNEW
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698