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

Unified Diff: lib/html/templates/html/dart2js/impl_Window.darttemplate

Issue 10910291: Changing return value of request animation frame. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« lib/html/idl/dart/dart.idl ('K') | « lib/html/idl/dart/dart.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/templates/html/dart2js/impl_Window.darttemplate
diff --git a/lib/html/templates/html/dart2js/impl_Window.darttemplate b/lib/html/templates/html/dart2js/impl_Window.darttemplate
index e7e156add95e27cef4b4feb5d22c99ed070d0f38..6de6a1d3912957efc89983a6872c4bc896af8e85 100644
--- a/lib/html/templates/html/dart2js/impl_Window.darttemplate
+++ b/lib/html/templates/html/dart2js/impl_Window.darttemplate
@@ -107,7 +107,9 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" {
}
if (this.requestAnimationFrame && this.cancelAnimationFrame) return;
this.requestAnimationFrame = function(callback) {
- return window.setTimeout(callback, 16 /* 16ms ~= 60fps */);
+ return window.setTimeout(function() {
+ callback(Date.now());
+ }, 16 /* 16ms ~= 60fps */);
};
this.cancelAnimationFrame = function(id) { clearTimeout(id); }
''';
« lib/html/idl/dart/dart.idl ('K') | « lib/html/idl/dart/dart.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698