| 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 // Raw Element. | 8 // Raw Element. |
| 9 final Element _element; | 9 final Element _element; |
| 10 final HtmlCollection _childElements; | 10 final HtmlCollection _childElements; |
| (...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 ShadowRoot createShadowRoot() { | 937 ShadowRoot createShadowRoot() { |
| 938 return JS('ShadowRoot', | 938 return JS('ShadowRoot', |
| 939 '(#.createShadowRoot || #.webkitCreateShadowRoot).call(#)', | 939 '(#.createShadowRoot || #.webkitCreateShadowRoot).call(#)', |
| 940 this, this, this); | 940 this, this, this); |
| 941 } | 941 } |
| 942 | 942 |
| 943 @DomName('Element.shadowRoot') | 943 @DomName('Element.shadowRoot') |
| 944 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 944 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
| 945 @Experimental() | 945 @Experimental() |
| 946 ShadowRoot get shadowRoot => | 946 ShadowRoot get shadowRoot => |
| 947 JS('ShadowRoot', '#.shadowRoot || #.webkitShadowRoot', this, this); | 947 JS('ShadowRoot|Null', '#.shadowRoot || #.webkitShadowRoot', this, this); |
| 948 $endif | 948 $endif |
| 949 | 949 |
| 950 | 950 |
| 951 /** | 951 /** |
| 952 * Gets the template this node refers to. | 952 * Gets the template this node refers to. |
| 953 * This is only supported if [isTemplate] is true. | 953 * This is only supported if [isTemplate] is true. |
| 954 */ | 954 */ |
| 955 @Experimental() | 955 @Experimental() |
| 956 Element get ref { | 956 Element get ref { |
| 957 _ensureTemplate(); | 957 _ensureTemplate(); |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 const ScrollAlignment._internal(this._value); | 1355 const ScrollAlignment._internal(this._value); |
| 1356 toString() => 'ScrollAlignment.$_value'; | 1356 toString() => 'ScrollAlignment.$_value'; |
| 1357 | 1357 |
| 1358 /// Attempt to align the element to the top of the scrollable area. | 1358 /// Attempt to align the element to the top of the scrollable area. |
| 1359 static const TOP = const ScrollAlignment._internal('TOP'); | 1359 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1360 /// Attempt to center the element in the scrollable area. | 1360 /// Attempt to center the element in the scrollable area. |
| 1361 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1361 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1362 /// Attempt to align the element to the bottom of the scrollable area. | 1362 /// Attempt to align the element to the bottom of the scrollable area. |
| 1363 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1363 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1364 } | 1364 } |
| OLD | NEW |