| 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 // TODO(jacobr): use _Lists.dart to remove some of the duplicated | 7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated |
| 8 // functionality. | 8 // functionality. |
| 9 class _ChildrenElementList implements List { | 9 class _ChildrenElementList implements List { |
| 10 // Raw Element. | 10 // Raw Element. |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 * * [Pseudo-elements](http://docs.webplatform.org/wiki/css/selectors/pseudo-e
lements) | 724 * * [Pseudo-elements](http://docs.webplatform.org/wiki/css/selectors/pseudo-e
lements) |
| 725 */ | 725 */ |
| 726 CssStyleDeclaration getComputedStyle([String pseudoElement]) { | 726 CssStyleDeclaration getComputedStyle([String pseudoElement]) { |
| 727 if (pseudoElement == null) { | 727 if (pseudoElement == null) { |
| 728 pseudoElement = ''; | 728 pseudoElement = ''; |
| 729 } | 729 } |
| 730 // TODO(jacobr): last param should be null, see b/5045788 | 730 // TODO(jacobr): last param should be null, see b/5045788 |
| 731 return window.$dom_getComputedStyle(this, pseudoElement); | 731 return window.$dom_getComputedStyle(this, pseudoElement); |
| 732 } | 732 } |
| 733 | 733 |
| 734 @deprecated |
| 735 int get clientHeight => client.height; |
| 736 @deprecated |
| 737 int get clientLeft => client.left; |
| 738 @deprecated |
| 739 int get clientTop => client.top; |
| 740 @deprecated |
| 741 int get clientWidth => client.width; |
| 742 |
| 743 @DomName('Element.clientHeight') |
| 744 @DomName('Element.clientLeft') |
| 745 @DomName('Element.clientTop') |
| 746 @DomName('Element.clientWidth') |
| 747 Rect get client => new Rect($dom_clientLeft, $dom_clientTop, $dom_clientWidth, |
| 748 $dom_clientHeight); |
| 749 |
| 750 @deprecated |
| 751 int get offsetHeight => offset.height; |
| 752 @deprecated |
| 753 int get offsetLeft => offset.left; |
| 754 @deprecated |
| 755 int get offsetTop => offset.top; |
| 756 @deprecated |
| 757 int get offsetWidth => offset.width; |
| 758 |
| 759 @DomName('Element.offsetHeight') |
| 760 @DomName('Element.offsetLeft') |
| 761 @DomName('Element.offsetTop') |
| 762 @DomName('Element.offsetWidth') |
| 763 Rect get offset => new Rect($dom_offsetLeft, $dom_offsetTop, $dom_offsetWidth, |
| 764 $dom_offsetHeight); |
| 765 |
| 734 /** | 766 /** |
| 735 * Adds the specified element to after the last child of this element. | 767 * Adds the specified element to after the last child of this element. |
| 736 */ | 768 */ |
| 737 void append(Element e) { | 769 void append(Element e) { |
| 738 this.children.add(e); | 770 this.children.add(e); |
| 739 } | 771 } |
| 740 | 772 |
| 741 /** | 773 /** |
| 742 * Adds the specified text as a text node after the last child of this | 774 * Adds the specified text as a text node after the last child of this |
| 743 * element. | 775 * element. |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 const ScrollAlignment._internal(this._value); | 1156 const ScrollAlignment._internal(this._value); |
| 1125 toString() => 'ScrollAlignment.$_value'; | 1157 toString() => 'ScrollAlignment.$_value'; |
| 1126 | 1158 |
| 1127 /// Attempt to align the element to the top of the scrollable area. | 1159 /// Attempt to align the element to the top of the scrollable area. |
| 1128 static const TOP = const ScrollAlignment._internal('TOP'); | 1160 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1129 /// Attempt to center the element in the scrollable area. | 1161 /// Attempt to center the element in the scrollable area. |
| 1130 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1162 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1131 /// Attempt to align the element to the bottom of the scrollable area. | 1163 /// Attempt to align the element to the bottom of the scrollable area. |
| 1132 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1164 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1133 } | 1165 } |
| OLD | NEW |