| 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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 if (pseudoElement == null) { | 635 if (pseudoElement == null) { |
| 636 pseudoElement = ''; | 636 pseudoElement = ''; |
| 637 } | 637 } |
| 638 // TODO(jacobr): last param should be null, see b/5045788 | 638 // TODO(jacobr): last param should be null, see b/5045788 |
| 639 return window._getComputedStyle(this, pseudoElement); | 639 return window._getComputedStyle(this, pseudoElement); |
| 640 } | 640 } |
| 641 | 641 |
| 642 /** | 642 /** |
| 643 * Gets the position of this element relative to the client area of the page. | 643 * Gets the position of this element relative to the client area of the page. |
| 644 */ | 644 */ |
| 645 Rect get client => new Rect(clientLeft, clientTop, clientWidth, clientHeight); | 645 Rectangle get client => new Rectangle(clientLeft, clientTop, clientWidth, |
| 646 clientHeight); |
| 646 | 647 |
| 647 /** | 648 /** |
| 648 * Gets the offset of this element relative to its offsetParent. | 649 * Gets the offset of this element relative to its offsetParent. |
| 649 */ | 650 */ |
| 650 Rect get offset => new Rect(offsetLeft, offsetTop, offsetWidth, offsetHeight); | 651 Rectangle get offset => new Rectangle(offsetLeft, offsetTop, offsetWidth, |
| 652 offsetHeight); |
| 651 | 653 |
| 652 /** | 654 /** |
| 653 * Adds the specified text after the last child of this element. | 655 * Adds the specified text after the last child of this element. |
| 654 */ | 656 */ |
| 655 void appendText(String text) { | 657 void appendText(String text) { |
| 656 this.insertAdjacentText('beforeend', text); | 658 this.insertAdjacentText('beforeend', text); |
| 657 } | 659 } |
| 658 | 660 |
| 659 /** | 661 /** |
| 660 * Parses the specified text as HTML and adds the resulting node after the | 662 * Parses the specified text as HTML and adds the resulting node after the |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 const ScrollAlignment._internal(this._value); | 1369 const ScrollAlignment._internal(this._value); |
| 1368 toString() => 'ScrollAlignment.$_value'; | 1370 toString() => 'ScrollAlignment.$_value'; |
| 1369 | 1371 |
| 1370 /// Attempt to align the element to the top of the scrollable area. | 1372 /// Attempt to align the element to the top of the scrollable area. |
| 1371 static const TOP = const ScrollAlignment._internal('TOP'); | 1373 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1372 /// Attempt to center the element in the scrollable area. | 1374 /// Attempt to center the element in the scrollable area. |
| 1373 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1375 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1374 /// Attempt to align the element to the bottom of the scrollable area. | 1376 /// Attempt to align the element to the bottom of the scrollable area. |
| 1375 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1377 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1376 } | 1378 } |
| OLD | NEW |