Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Side by Side Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 494253002: Fix Try Dart newline handling on IE11. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Test checks content of the text with newlines Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« tests/html/element_add_test.dart ('K') | « tests/try/try.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 implements NodeListWrapper { 8 implements NodeListWrapper {
9 // Raw Element. 9 // Raw Element.
10 final Element _element; 10 final Element _element;
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 /** 707 /**
708 * Gets the offset of this element relative to its offsetParent. 708 * Gets the offset of this element relative to its offsetParent.
709 */ 709 */
710 Rectangle get offset => new Rectangle(offsetLeft, offsetTop, offsetWidth, 710 Rectangle get offset => new Rectangle(offsetLeft, offsetTop, offsetWidth,
711 offsetHeight); 711 offsetHeight);
712 712
713 /** 713 /**
714 * Adds the specified text after the last child of this element. 714 * Adds the specified text after the last child of this element.
715 */ 715 */
716 void appendText(String text) { 716 void appendText(String text) {
717 this.insertAdjacentText('beforeend', text); 717 this.append(new Text(text));
718 } 718 }
719 719
720 /** 720 /**
721 * Parses the specified text as HTML and adds the resulting node after the 721 * Parses the specified text as HTML and adds the resulting node after the
722 * last child of this element. 722 * last child of this element.
723 */ 723 */
724 void appendHtml(String text) { 724 void appendHtml(String text) {
725 this.insertAdjacentHtml('beforeend', text); 725 this.insertAdjacentHtml('beforeend', text);
726 } 726 }
727 727
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 const ScrollAlignment._internal(this._value); 1482 const ScrollAlignment._internal(this._value);
1483 toString() => 'ScrollAlignment.$_value'; 1483 toString() => 'ScrollAlignment.$_value';
1484 1484
1485 /// Attempt to align the element to the top of the scrollable area. 1485 /// Attempt to align the element to the top of the scrollable area.
1486 static const TOP = const ScrollAlignment._internal('TOP'); 1486 static const TOP = const ScrollAlignment._internal('TOP');
1487 /// Attempt to center the element in the scrollable area. 1487 /// Attempt to center the element in the scrollable area.
1488 static const CENTER = const ScrollAlignment._internal('CENTER'); 1488 static const CENTER = const ScrollAlignment._internal('CENTER');
1489 /// Attempt to align the element to the bottom of the scrollable area. 1489 /// Attempt to align the element to the bottom of the scrollable area.
1490 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1490 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1491 } 1491 }
OLDNEW
« tests/html/element_add_test.dart ('K') | « tests/try/try.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698