Fixing Window.animationFrame timing issue
Was using async completer which changes the timing. Additional Dartium changes are from https://codereview.chromium.org//111613002 which did not re-gen the Dartium file. BUG=15848 R=efortuna@google.com Review URL: https://codereview.chromium.org//98183006 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31590 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
@@ -27408,7 +27408,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
|
||||
* [animationFrame] again for the animation to continue.
|
||||
*/
|
||||
Future<num> get animationFrame {
|
||||
var completer = new Completer<num>();
|
||||
var completer = new Completer<num>.sync();
|
||||
requestAnimationFrame((time) {
|
||||
completer.complete(time);
|
||||
});
|
||||
|
||||
@@ -28972,13 +28972,13 @@ class Url extends NativeFieldWrapperClass2 implements UrlUtils {
|
||||
if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
|
||||
return _createObjectURL_1(blob_OR_source_OR_stream);
|
||||
}
|
||||
if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
|
||||
if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
|
||||
return _createObjectURL_2(blob_OR_source_OR_stream);
|
||||
}
|
||||
if ((blob_OR_source_OR_stream is _WebKitMediaSource || blob_OR_source_OR_stream == null)) {
|
||||
if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
|
||||
return _createObjectURL_3(blob_OR_source_OR_stream);
|
||||
}
|
||||
if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
|
||||
if ((blob_OR_source_OR_stream is _WebKitMediaSource || blob_OR_source_OR_stream == null)) {
|
||||
return _createObjectURL_4(blob_OR_source_OR_stream);
|
||||
}
|
||||
throw new ArgumentError("Incorrect number or type of arguments");
|
||||
@@ -30049,7 +30049,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
|
||||
* [animationFrame] again for the animation to continue.
|
||||
*/
|
||||
Future<num> get animationFrame {
|
||||
var completer = new Completer<num>();
|
||||
var completer = new Completer<num>.sync();
|
||||
requestAnimationFrame((time) {
|
||||
completer.complete(time);
|
||||
});
|
||||
|
||||
@@ -27,7 +27,7 @@ $endif
|
||||
* [animationFrame] again for the animation to continue.
|
||||
*/
|
||||
Future<num> get animationFrame {
|
||||
var completer = new Completer<num>();
|
||||
var completer = new Completer<num>.sync();
|
||||
requestAnimationFrame((time) {
|
||||
completer.complete(time);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user