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

Side by Side Diff: tools/dom/src/shared_html.dart

Issue 27403002: MutationObserver changes for zones (again) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 part of dart.dom.html; 5 part of dart.dom.html;
6 6
7 _wrapZone(callback) { 7 _wrapZone(callback) {
8 // For performance reasons avoid wrapping if we are in the root zone. 8 // For performance reasons avoid wrapping if we are in the root zone.
9 if (Zone.current == Zone.ROOT) return callback; 9 if (Zone.current == Zone.ROOT) return callback;
10 return Zone.current.bindUnaryCallback(callback, runGuarded: true); 10 return Zone.current.bindUnaryCallback(callback, runGuarded: true);
11 } 11 }
12 12
13 _wrapBinaryZone(callback) {
14 if (Zone.current == Zone.ROOT) return callback;
15 return Zone.current.bindBinaryCallback(callback, runGuarded: true);
16 }
17
13 Element query(String selector) => document.query(selector); 18 Element query(String selector) => document.query(selector);
14 ElementList queryAll(String selector) => document.queryAll(selector); 19 ElementList queryAll(String selector) => document.queryAll(selector);
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/templates/html/impl/impl_MutationObserver.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698