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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 15660010: Fixing dart2js compilation warning. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev' hide Symbol; 6 import 'dart:_collection-dev' hide Symbol;
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 15810 matching lines...) Expand 10 before | Expand all | Expand 10 after
15821 15821
15822 /** 15822 /**
15823 * Inserts all of the nodes into this node directly before refChild. 15823 * Inserts all of the nodes into this node directly before refChild.
15824 * 15824 *
15825 * See also: 15825 * See also:
15826 * 15826 *
15827 * * [insertBefore] 15827 * * [insertBefore]
15828 */ 15828 */
15829 Node insertAllBefore(Iterable<Node> newNodes, Node refChild) { 15829 Node insertAllBefore(Iterable<Node> newNodes, Node refChild) {
15830 if (newNodes is _ChildNodeListLazy) { 15830 if (newNodes is _ChildNodeListLazy) {
15831 if (identical(newNodes._this, this)) { 15831 _ChildNodeListLazy otherList = newNodes;
15832 if (identical(otherList._this, this)) {
15832 throw new ArgumentError(newNodes); 15833 throw new ArgumentError(newNodes);
15833 } 15834 }
15834 15835
15835 // Optimized route for copying between nodes. 15836 // Optimized route for copying between nodes.
15836 for (var i = 0, len = newNodes.length; i < len; ++i) { 15837 for (var i = 0, len = otherList.length; i < len; ++i) {
15837 // Should use $dom_firstChild, Bug 8886. 15838 // Should use $dom_firstChild, Bug 8886.
15838 this.insertBefore(newNodes[0], refChild); 15839 this.insertBefore(otherList[0], refChild);
15839 } 15840 }
15840 } else { 15841 } else {
15841 for (var node in newNodes) { 15842 for (var node in newNodes) {
15842 this.insertBefore(node, refChild); 15843 this.insertBefore(node, refChild);
15843 } 15844 }
15844 } 15845 }
15845 } 15846 }
15846 15847
15847 /** 15848 /**
15848 * Print out a String representation of this Node. 15849 * Print out a String representation of this Node.
(...skipping 13497 matching lines...) Expand 10 before | Expand all | Expand 10 after
29346 _position = nextPosition; 29347 _position = nextPosition;
29347 return true; 29348 return true;
29348 } 29349 }
29349 _current = null; 29350 _current = null;
29350 _position = _array.length; 29351 _position = _array.length;
29351 return false; 29352 return false;
29352 } 29353 }
29353 29354
29354 T get current => _current; 29355 T get current => _current;
29355 } 29356 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698