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

Unified Diff: polymer_0.5.4/bower_components/web-animations-js/src/timeline.js

Issue 895523005: Added Polymer 0.5.4 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 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
Index: polymer_0.5.4/bower_components/web-animations-js/src/timeline.js
diff --git a/polymer_0.5.0/bower_components/web-animations-js/src/timeline.js b/polymer_0.5.4/bower_components/web-animations-js/src/timeline.js
similarity index 83%
copy from polymer_0.5.0/bower_components/web-animations-js/src/timeline.js
copy to polymer_0.5.4/bower_components/web-animations-js/src/timeline.js
index e9ed3cac399f9b60bb59a82b494c86494ef889c2..263494b099d7a53cc83aa503318ae6217df00bd6 100644
--- a/polymer_0.5.0/bower_components/web-animations-js/src/timeline.js
+++ b/polymer_0.5.4/bower_components/web-animations-js/src/timeline.js
@@ -21,7 +21,7 @@
};
scope.AnimationTimeline.prototype = {
- // FIXME: This needs to return the wrapped players in maxifill
+ // FIXME: This needs to return the wrapped players in Web Animations Next
// TODO: Does this need to be sorted?
// TODO: Do we need to consider needsRetick?
getAnimationPlayers: function() {
@@ -36,7 +36,7 @@
play: function(source) {
var player = new scope.Player(source);
this._players.push(player);
- scope.restartMaxifillTick();
+ scope.restartWebAnimationsNextTick();
player.play();
return player;
},
@@ -44,21 +44,21 @@
var ticking = false;
- scope.restartMaxifillTick = function() {
+ scope.restartWebAnimationsNextTick = function() {
if (!ticking) {
ticking = true;
- requestAnimationFrame(maxifillTick);
+ requestAnimationFrame(webAnimationsNextTick);
}
};
- function maxifillTick(t) {
+ function webAnimationsNextTick(t) {
var timeline = window.document.timeline;
timeline.currentTime = t;
timeline._discardPlayers();
if (timeline._players.length == 0)
ticking = false;
else
- requestAnimationFrame(maxifillTick);
+ requestAnimationFrame(webAnimationsNextTick);
}
var timeline = new scope.AnimationTimeline();
@@ -74,4 +74,4 @@
window.document.timeline = timeline;
} catch (e) { }
-})(webAnimationsShared, webAnimationsMaxifill, webAnimationsTesting);
+})(webAnimationsShared, webAnimationsNext, webAnimationsTesting);

Powered by Google App Engine
This is Rietveld 408576698