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

Unified Diff: lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 11053020: Changing return value of request animation frame. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing dartium build error. Created 8 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:
Download patch
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dart2js/html_dart2js.dart
diff --git a/lib/html/dart2js/html_dart2js.dart b/lib/html/dart2js/html_dart2js.dart
index 4c58d1b9dcde9d41c841c4f6604ed080d268f73d..82bd78d4e75f4e9b518627b1d43b00ec2e12431f 100644
--- a/lib/html/dart2js/html_dart2js.dart
+++ b/lib/html/dart2js/html_dart2js.dart
@@ -22661,7 +22661,7 @@ class _RectImpl implements Rect native "*Rect" {
// WARNING: Do not edit - generated code.
-typedef bool RequestAnimationFrameCallback(int time);
+typedef void RequestAnimationFrameCallback(int time);
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -36356,7 +36356,9 @@ class _WindowImpl extends _EventTargetImpl implements Window 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); }
''';
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698