| 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 * See also: | 620 * See also: |
| 621 * | 621 * |
| 622 * * [CSS Inheritance and Cascade](http://docs.webplatform.org/wiki/tutorials/
inheritance_and_cascade) | 622 * * [CSS Inheritance and Cascade](http://docs.webplatform.org/wiki/tutorials/
inheritance_and_cascade) |
| 623 * * [Pseudo-elements](http://docs.webplatform.org/wiki/css/selectors/pseudo-e
lements) | 623 * * [Pseudo-elements](http://docs.webplatform.org/wiki/css/selectors/pseudo-e
lements) |
| 624 */ | 624 */ |
| 625 CssStyleDeclaration getComputedStyle([String pseudoElement]) { | 625 CssStyleDeclaration getComputedStyle([String pseudoElement]) { |
| 626 if (pseudoElement == null) { | 626 if (pseudoElement == null) { |
| 627 pseudoElement = ''; | 627 pseudoElement = ''; |
| 628 } | 628 } |
| 629 // TODO(jacobr): last param should be null, see b/5045788 | 629 // TODO(jacobr): last param should be null, see b/5045788 |
| 630 return window.$dom_getComputedStyle(this, pseudoElement); | 630 return window._getComputedStyle(this, pseudoElement); |
| 631 } | 631 } |
| 632 | 632 |
| 633 /** | 633 /** |
| 634 * Gets the position of this element relative to the client area of the page. | 634 * Gets the position of this element relative to the client area of the page. |
| 635 */ | 635 */ |
| 636 Rect get client => new Rect(clientLeft, clientTop, clientWidth, clientHeight); | 636 Rect get client => new Rect(clientLeft, clientTop, clientWidth, clientHeight); |
| 637 | 637 |
| 638 /** | 638 /** |
| 639 * Gets the offset of this element relative to its offsetParent. | 639 * Gets the offset of this element relative to its offsetParent. |
| 640 */ | 640 */ |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 const ScrollAlignment._internal(this._value); | 1323 const ScrollAlignment._internal(this._value); |
| 1324 toString() => 'ScrollAlignment.$_value'; | 1324 toString() => 'ScrollAlignment.$_value'; |
| 1325 | 1325 |
| 1326 /// Attempt to align the element to the top of the scrollable area. | 1326 /// Attempt to align the element to the top of the scrollable area. |
| 1327 static const TOP = const ScrollAlignment._internal('TOP'); | 1327 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1328 /// Attempt to center the element in the scrollable area. | 1328 /// Attempt to center the element in the scrollable area. |
| 1329 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1329 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1330 /// Attempt to align the element to the bottom of the scrollable area. | 1330 /// Attempt to align the element to the bottom of the scrollable area. |
| 1331 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1331 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1332 } | 1332 } |
| OLD | NEW |