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

Side by Side Diff: runtime/observatory/lib/src/elements/containers/virtual_tree.dart

Issue 2968283002: Fixed synchronization problem in FF and Safari for virtual-tree test (Closed)
Patch Set: Clear the RenderScheduler wait list after notification Created 3 years, 5 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
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/helpers/rendering_scheduler.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 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:math' as Math; 8 import 'dart:math' as Math;
9 import 'package:observatory/src/elements/containers/virtual_collection.dart'; 9 import 'package:observatory/src/elements/containers/virtual_collection.dart';
10 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; 10 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart';
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 .forEach((c) => toDo.addFirst(c)); 170 .forEach((c) => toDo.addFirst(c));
171 final depth = depths[items.length - 1]; 171 final depth = depths[items.length - 1];
172 depths.insertAll( 172 depths.insertAll(
173 items.length, new List.filled(children.length, depth + 1)); 173 items.length, new List.filled(children.length, depth + 1));
174 } 174 }
175 } 175 }
176 } 176 }
177 177
178 _depths = depths; 178 _depths = depths;
179 _collection.items = items; 179 _collection.items = items;
180
181 _r.waitFor([_collection.onRendered.first]);
180 } 182 }
181 } 183 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/helpers/rendering_scheduler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698