OLD | NEW |
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 implements NodeListWrapper { | 8 implements NodeListWrapper { |
9 // Raw Element. | 9 // Raw Element. |
10 final Element _element; | 10 final Element _element; |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 CssRect get borderEdge => _elementList.first.borderEdge; | 309 CssRect get borderEdge => _elementList.first.borderEdge; |
310 | 310 |
311 CssRect get marginEdge => _elementList.first.marginEdge; | 311 CssRect get marginEdge => _elementList.first.marginEdge; |
312 | 312 |
313 List<Node> get rawList => _nodeList; | 313 List<Node> get rawList => _nodeList; |
314 | 314 |
315 $!ELEMENT_STREAM_GETTERS | 315 $!ELEMENT_STREAM_GETTERS |
316 } | 316 } |
317 | 317 |
318 @DocsEditable() | 318 @DocsEditable() |
319 $(ANNOTATIONS)abstract class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 319 $(ANNOTATIONS)$(NATIVESPEC)abstract class $CLASSNAME$EXTENDS$IMPLEMENTS { |
320 | 320 |
321 /** | 321 /** |
322 * Creates an HTML element from a valid fragment of HTML. | 322 * Creates an HTML element from a valid fragment of HTML. |
323 * | 323 * |
324 * var element = new Element.html('<div class="foo">content</div>'); | 324 * var element = new Element.html('<div class="foo">content</div>'); |
325 * | 325 * |
326 * The HTML fragment should contain only one single root element, any | 326 * The HTML fragment should contain only one single root element, any |
327 * leading or trailing text nodes will be removed. | 327 * leading or trailing text nodes will be removed. |
328 * | 328 * |
329 * The HTML fragment is parsed as if it occurred within the context of a | 329 * The HTML fragment is parsed as if it occurred within the context of a |
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 const ScrollAlignment._internal(this._value); | 1478 const ScrollAlignment._internal(this._value); |
1479 toString() => 'ScrollAlignment.$_value'; | 1479 toString() => 'ScrollAlignment.$_value'; |
1480 | 1480 |
1481 /// Attempt to align the element to the top of the scrollable area. | 1481 /// Attempt to align the element to the top of the scrollable area. |
1482 static const TOP = const ScrollAlignment._internal('TOP'); | 1482 static const TOP = const ScrollAlignment._internal('TOP'); |
1483 /// Attempt to center the element in the scrollable area. | 1483 /// Attempt to center the element in the scrollable area. |
1484 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1484 static const CENTER = const ScrollAlignment._internal('CENTER'); |
1485 /// Attempt to align the element to the bottom of the scrollable area. | 1485 /// Attempt to align the element to the bottom of the scrollable area. |
1486 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1486 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
1487 } | 1487 } |
OLD | NEW |