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

Unified Diff: sdk/lib/html/src/Measurement.dart

Issue 11647044: Adding annotation for partial browser support and example implementation for MutationObservers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added experimental annotation to MutationObserver. Created 8 years 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 | « sdk/lib/html/html_common/metadata.dart ('k') | sdk/lib/html/src/dart2js_MutationObserverSupported.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/src/Measurement.dart
diff --git a/sdk/lib/html/src/Measurement.dart b/sdk/lib/html/src/Measurement.dart
index 7b72c93f3490cdf2e4391c1acaac0881a65c1cc7..7d34e7b2db819ea7a865dcc9ef2a3f633e01f8d0 100644
--- a/sdk/lib/html/src/Measurement.dart
+++ b/sdk/lib/html/src/Measurement.dart
@@ -16,7 +16,6 @@ class _MeasurementRequest<T> {
typedef void _MeasurementCallback();
-
/**
* This class attempts to invoke a callback as soon as the current event stack
* unwinds, but before the browser repaints.
@@ -31,7 +30,7 @@ abstract class _MeasurementScheduler {
* Creates the best possible measurement scheduler for the current platform.
*/
factory _MeasurementScheduler.best(_MeasurementCallback callback) {
- if (_isMutationObserverSupported()) {
+ if (MutationObserver.supported) {
return new _MutationObserverScheduler(callback);
}
return new _PostMessageScheduler(callback);
« no previous file with comments | « sdk/lib/html/html_common/metadata.dart ('k') | sdk/lib/html/src/dart2js_MutationObserverSupported.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698