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

Unified Diff: client/html/src/ElementWrappingImplementation.dart

Issue 9146017: Fix FrozenElementList#forEach. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/html/release/htmlimpl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/ElementWrappingImplementation.dart
diff --git a/client/html/src/ElementWrappingImplementation.dart b/client/html/src/ElementWrappingImplementation.dart
index eded46deee989ca02a5eb8276d0c147ce3230fe9..64d521f74b04180e64686b777b746d17abfb640b 100644
--- a/client/html/src/ElementWrappingImplementation.dart
+++ b/client/html/src/ElementWrappingImplementation.dart
@@ -155,8 +155,9 @@ class FrozenElementList implements ElementList {
}
void forEach(void f(Element element)) {
- for (var element in _ptr) {
- f(LevelDom.wrapElement(element));
+ final length = _ptr.length;
+ for (var i = 0; i < length; i++) {
Jacob 2012/01/10 00:46:19 var ==> int
nweiz 2012/01/10 01:32:51 That seems redundant...
+ f(LevelDom.wrapElement(_ptr[i]));
}
}
« no previous file with comments | « client/html/release/htmlimpl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698