| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 * Gets the position of this element relative to the client area of the page. | 403 * Gets the position of this element relative to the client area of the page. |
| 404 */ | 404 */ |
| 405 Rect get client => new Rect(clientLeft, clientTop, clientWidth, clientHeight); | 405 Rect get client => new Rect(clientLeft, clientTop, clientWidth, clientHeight); |
| 406 | 406 |
| 407 /** | 407 /** |
| 408 * Gets the offset of this element relative to its offsetParent. | 408 * Gets the offset of this element relative to its offsetParent. |
| 409 */ | 409 */ |
| 410 Rect get offset => new Rect(offsetLeft, offsetTop, offsetWidth, offsetHeight); | 410 Rect get offset => new Rect(offsetLeft, offsetTop, offsetWidth, offsetHeight); |
| 411 | 411 |
| 412 /** | 412 /** |
| 413 * Adds the specified text as a text node after the last child of this | 413 * Adds the specified text after the last child of this element. |
| 414 * element. | |
| 415 */ | 414 */ |
| 416 void appendText(String text) { | 415 void appendText(String text) { |
| 417 this.insertAdjacentText('beforeend', text); | 416 this.insertAdjacentText('beforeend', text); |
| 418 } | 417 } |
| 419 | 418 |
| 420 /** | 419 /** |
| 421 * Parses the specified text as HTML and adds the resulting node after the | 420 * Parses the specified text as HTML and adds the resulting node after the |
| 422 * last child of this element. | 421 * last child of this element. |
| 423 */ | 422 */ |
| 424 void appendHtml(String text) { | 423 void appendHtml(String text) { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 static String _determineTransitionEventType(EventTarget e) { | 542 static String _determineTransitionEventType(EventTarget e) { |
| 544 // Unfortunately the normal 'ontransitionend' style checks don't work here. | 543 // Unfortunately the normal 'ontransitionend' style checks don't work here. |
| 545 if (Device.isWebKit) { | 544 if (Device.isWebKit) { |
| 546 return 'webkitTransitionEnd'; | 545 return 'webkitTransitionEnd'; |
| 547 } else if (Device.isOpera) { | 546 } else if (Device.isOpera) { |
| 548 return 'oTransitionEnd'; | 547 return 'oTransitionEnd'; |
| 549 } | 548 } |
| 550 return 'transitionend'; | 549 return 'transitionend'; |
| 551 } | 550 } |
| 552 /** | 551 /** |
| 553 * Creates a text node and inserts it into the DOM at the specified location. | 552 * Inserts text into the DOM at the specified location. |
| 554 * | 553 * |
| 555 * To see the possible values for [where], read the doc for | 554 * To see the possible values for [where], read the doc for |
| 556 * [insertAdjacentHtml]. | 555 * [insertAdjacentHtml]. |
| 557 * | 556 * |
| 558 * See also: | 557 * See also: |
| 559 * | 558 * |
| 560 * * [insertAdjacentHtml] | 559 * * [insertAdjacentHtml] |
| 561 */ | 560 */ |
| 562 void insertAdjacentText(String where, String text) { | 561 void insertAdjacentText(String where, String text) { |
| 563 if (JS('bool', '!!#.insertAdjacentText', this)) { | 562 if (JS('bool', '!!#.insertAdjacentText', this)) { |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 const ScrollAlignment._internal(this._value); | 1063 const ScrollAlignment._internal(this._value); |
| 1065 toString() => 'ScrollAlignment.$_value'; | 1064 toString() => 'ScrollAlignment.$_value'; |
| 1066 | 1065 |
| 1067 /// Attempt to align the element to the top of the scrollable area. | 1066 /// Attempt to align the element to the top of the scrollable area. |
| 1068 static const TOP = const ScrollAlignment._internal('TOP'); | 1067 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1069 /// Attempt to center the element in the scrollable area. | 1068 /// Attempt to center the element in the scrollable area. |
| 1070 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1069 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1071 /// Attempt to align the element to the bottom of the scrollable area. | 1070 /// Attempt to align the element to the bottom of the scrollable area. |
| 1072 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1071 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1073 } | 1072 } |
| OLD | NEW |