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

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

Issue 14630016: Getting html_dart2js and html_dartium a bit more in sync. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
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 // Raw Element. 8 // Raw Element.
9 final Element _element; 9 final Element _element;
10 final HtmlCollection _childElements; 10 final HtmlCollection _childElements;
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 * // Inserts as the first child 546 * // Inserts as the first child
547 * document.body.insertAdjacentHtml('afterBegin', html); 547 * document.body.insertAdjacentHtml('afterBegin', html);
548 * var createdElement = document.body.children[0]; 548 * var createdElement = document.body.children[0];
549 * print(createdElement.classes[0]); // Prints 'something' 549 * print(createdElement.classes[0]); // Prints 'something'
550 * 550 *
551 * See also: 551 * See also:
552 * 552 *
553 * * [insertAdjacentText] 553 * * [insertAdjacentText]
554 * * [insertAdjacentElement] 554 * * [insertAdjacentElement]
555 */ 555 */
556 void insertAdjacentHtml(String where, String text) { 556 void insertAdjacentHtml(String where, String html) {
Emily Fortuna 2013/05/14 00:29:30 really? the analyzer cares about parameter names?
blois 2013/05/14 01:03:16 It's a different one that I made using the analyze
557 if (JS('bool', '!!#.insertAdjacentHtml', this)) { 557 if (JS('bool', '!!#.insertAdjacentHtml', this)) {
558 _insertAdjacentHtml(where, text); 558 _insertAdjacentHtml(where, html);
559 } else { 559 } else {
560 _insertAdjacentNode(where, new DocumentFragment.html(text)); 560 _insertAdjacentNode(where, new DocumentFragment.html(html));
561 } 561 }
562 } 562 }
563 563
564 @JSName('insertAdjacentHTML') 564 @JSName('insertAdjacentHTML')
565 void _insertAdjacentHTML(String where, String text) native; 565 void _insertAdjacentHTML(String where, String text) native;
566 566
567 /** 567 /**
568 * Inserts [element] into the DOM at the specified location. 568 * Inserts [element] into the DOM at the specified location.
569 * 569 *
570 * To see the possible values for [where], read the doc for 570 * To see the possible values for [where], read the doc for
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 const ScrollAlignment._internal(this._value); 1023 const ScrollAlignment._internal(this._value);
1024 toString() => 'ScrollAlignment.$_value'; 1024 toString() => 'ScrollAlignment.$_value';
1025 1025
1026 /// Attempt to align the element to the top of the scrollable area. 1026 /// Attempt to align the element to the top of the scrollable area.
1027 static const TOP = const ScrollAlignment._internal('TOP'); 1027 static const TOP = const ScrollAlignment._internal('TOP');
1028 /// Attempt to center the element in the scrollable area. 1028 /// Attempt to center the element in the scrollable area.
1029 static const CENTER = const ScrollAlignment._internal('CENTER'); 1029 static const CENTER = const ScrollAlignment._internal('CENTER');
1030 /// Attempt to align the element to the bottom of the scrollable area. 1030 /// Attempt to align the element to the bottom of the scrollable area.
1031 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1031 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1032 } 1032 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698