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

Unified Diff: samples/swarm/swarm_ui_lib/view/view.dart

Issue 12087004: Changing window.requestLayoutFrame into a microtask API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « samples/swarm/swarm_ui_lib/view/SliderMenu.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/view/view.dart
diff --git a/samples/swarm/swarm_ui_lib/view/view.dart b/samples/swarm/swarm_ui_lib/view/view.dart
index dd3d5746719c7e9e7edec335edadb71228286b06..bbee2fad825378da5b7d7cd06c0bbb758eff8c34 100644
--- a/samples/swarm/swarm_ui_lib/view/view.dart
+++ b/samples/swarm/swarm_ui_lib/view/view.dart
@@ -336,7 +336,7 @@ class View implements Positionable {
changedComplete = true;
});
- window.requestLayoutFrame(() {
+ window.setImmediate(() {
if (!changedComplete) {
changed.complete(false);
}
@@ -352,7 +352,7 @@ class View implements Positionable {
// a good tradeoff?
if (ViewLayout.hasCustomLayout(this)) {
Completer sizeCompleter = new Completer<Size>();
- window.requestLayoutFrame(() {
+ window.setImmediate(() {
sizeCompleter.complete(
new Size(_node.clientWidth, _node.clientHeight));
});
« no previous file with comments | « samples/swarm/swarm_ui_lib/view/SliderMenu.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698