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

Side by Side Diff: client/html/release/html.dart

Issue 8330003: Rename cloneNode to clone and move it into the Node interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't change the benchmark that uses the DOM interface. Created 9 years, 2 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 | « client/html/benchmarks/dromaeo/tests/DomModify.dart ('k') | client/html/src/Node.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 #library('html'); 1 #library('html');
2 2
3 #import('dart:dom', prefix:'dom'); 3 #import('dart:dom', prefix:'dom');
4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
5 // for details. All rights reserved. Use of this source code is governed by a 5 // for details. All rights reserved. Use of this source code is governed by a
6 // BSD-style license that can be found in the LICENSE file. 6 // BSD-style license that can be found in the LICENSE file.
7 7
8 // DO NOT EDIT 8 // DO NOT EDIT
9 // Auto-generated Dart HTML library. 9 // Auto-generated Dart HTML library.
10 10
(...skipping 20285 matching lines...) Expand 10 before | Expand all | Expand 10 after
20296 Node replaceWith(Node otherNode); 20296 Node replaceWith(Node otherNode);
20297 20297
20298 Node remove(); 20298 Node remove();
20299 20299
20300 bool contains(Node otherNode); 20300 bool contains(Node otherNode);
20301 20301
20302 // TODO(jacobr): remove when/if Array supports a method similar to 20302 // TODO(jacobr): remove when/if Array supports a method similar to
20303 // insertBefore or we switch NodeList to implement LinkedList rather than 20303 // insertBefore or we switch NodeList to implement LinkedList rather than
20304 // array. 20304 // array.
20305 Node insertBefore(Node newChild, Node refChild); 20305 Node insertBefore(Node newChild, Node refChild);
20306
20307 Node clone(bool deep);
20306 } 20308 }
20307 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 20309 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
20308 // for details. All rights reserved. Use of this source code is governed by a 20310 // for details. All rights reserved. Use of this source code is governed by a
20309 // BSD-style license that can be found in the LICENSE file. 20311 // BSD-style license that can be found in the LICENSE file.
20310 20312
20311 interface NodeList extends List<Node> { 20313 interface NodeList extends List<Node> {
20312 Node get first(); 20314 Node get first();
20313 } 20315 }
20314 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 20316 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
20315 // for details. All rights reserved. Use of this source code is governed by a 20317 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
20517 } 20519 }
20518 20520
20519 // TODO(jacobr): remove when/if List supports a method similar to 20521 // TODO(jacobr): remove when/if List supports a method similar to
20520 // insertBefore or we switch NodeList to implement LinkedList rather than 20522 // insertBefore or we switch NodeList to implement LinkedList rather than
20521 // array. 20523 // array.
20522 Node insertBefore(Node newChild, Node refChild) { 20524 Node insertBefore(Node newChild, Node refChild) {
20523 return LevelDom.wrapNode(_ptr.insertBefore( 20525 return LevelDom.wrapNode(_ptr.insertBefore(
20524 LevelDom.unwrap(newChild), LevelDom.unwrap(refChild))); 20526 LevelDom.unwrap(newChild), LevelDom.unwrap(refChild)));
20525 } 20527 }
20526 20528
20527 // TODO(jacobr): required for some benchmarks. Added to this class but not Nod e while 20529 Node clone(bool deep) {
20528 // we decide what to do with it.
20529 Node cloneNode(bool deep) {
20530 return LevelDom.wrapNode(_ptr.cloneNode(deep)); 20530 return LevelDom.wrapNode(_ptr.cloneNode(deep));
20531 } 20531 }
20532 } 20532 }
20533 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 20533 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
20534 // for details. All rights reserved. Use of this source code is governed by a 20534 // for details. All rights reserved. Use of this source code is governed by a
20535 // BSD-style license that can be found in the LICENSE file. 20535 // BSD-style license that can be found in the LICENSE file.
20536 20536
20537 interface Notification extends EventTarget { 20537 interface Notification extends EventTarget {
20538 20538
20539 String get dir(); 20539 String get dir();
(...skipping 1863 matching lines...) Expand 10 before | Expand all | Expand 10 after
22403 startIndex = a.length - 1; 22403 startIndex = a.length - 1;
22404 } 22404 }
22405 for (int i = startIndex; i >= 0; i--) { 22405 for (int i = startIndex; i >= 0; i--) {
22406 if (a[i] == element) { 22406 if (a[i] == element) {
22407 return i; 22407 return i;
22408 } 22408 }
22409 } 22409 }
22410 return -1; 22410 return -1;
22411 } 22411 }
22412 } 22412 }
OLDNEW
« no previous file with comments | « client/html/benchmarks/dromaeo/tests/DomModify.dart ('k') | client/html/src/Node.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698