| 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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 if (pseudoElement == null) { | 667 if (pseudoElement == null) { |
| 668 pseudoElement = ''; | 668 pseudoElement = ''; |
| 669 } | 669 } |
| 670 // TODO(jacobr): last param should be null, see b/5045788 | 670 // TODO(jacobr): last param should be null, see b/5045788 |
| 671 return window._getComputedStyle(this, pseudoElement); | 671 return window._getComputedStyle(this, pseudoElement); |
| 672 } | 672 } |
| 673 | 673 |
| 674 /** | 674 /** |
| 675 * Gets the position of this element relative to the client area of the page. | 675 * Gets the position of this element relative to the client area of the page. |
| 676 */ | 676 */ |
| 677 Rect get client => new Rect(clientLeft, clientTop, clientWidth, clientHeight); | 677 Rectangle get client => new Rectangle(clientLeft, clientTop, clientWidth, |
| 678 clientHeight); |
| 678 | 679 |
| 679 /** | 680 /** |
| 680 * Gets the offset of this element relative to its offsetParent. | 681 * Gets the offset of this element relative to its offsetParent. |
| 681 */ | 682 */ |
| 682 Rect get offset => new Rect(offsetLeft, offsetTop, offsetWidth, offsetHeight); | 683 Rectangle get offset => new Rectangle(offsetLeft, offsetTop, offsetWidth, |
| 684 offsetHeight); |
| 683 | 685 |
| 684 /** | 686 /** |
| 685 * Adds the specified text after the last child of this element. | 687 * Adds the specified text after the last child of this element. |
| 686 */ | 688 */ |
| 687 void appendText(String text) { | 689 void appendText(String text) { |
| 688 this.insertAdjacentText('beforeend', text); | 690 this.insertAdjacentText('beforeend', text); |
| 689 } | 691 } |
| 690 | 692 |
| 691 /** | 693 /** |
| 692 * Parses the specified text as HTML and adds the resulting node after the | 694 * Parses the specified text as HTML and adds the resulting node after the |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 const ScrollAlignment._internal(this._value); | 1409 const ScrollAlignment._internal(this._value); |
| 1408 toString() => 'ScrollAlignment.$_value'; | 1410 toString() => 'ScrollAlignment.$_value'; |
| 1409 | 1411 |
| 1410 /// Attempt to align the element to the top of the scrollable area. | 1412 /// Attempt to align the element to the top of the scrollable area. |
| 1411 static const TOP = const ScrollAlignment._internal('TOP'); | 1413 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1412 /// Attempt to center the element in the scrollable area. | 1414 /// Attempt to center the element in the scrollable area. |
| 1413 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1415 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1414 /// Attempt to align the element to the bottom of the scrollable area. | 1416 /// Attempt to align the element to the bottom of the scrollable area. |
| 1415 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1417 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1416 } | 1418 } |
| OLD | NEW |