Commit f9601fc8 authored by philipj@opera.com's avatar philipj@opera.com

Use requestAnimationFrame (without prefix) in calendar picker

This is a prerequisite for deprecating the prefixed function, because
otherwise the forms tests get a deprecation message. This internal use
of webkitRequestAnimationFrame may also have inflated the use counter
data for it.

BUG=354921
R=abarth@chromium.org, keishi@chromium.org, tkent@chromium.org

Review URL: https://codereview.chromium.org/209003012

git-svn-id: svn://svn.chromium.org/blink/trunk@169918 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b6df1f3b
......@@ -919,7 +919,7 @@ AnimationManager.prototype._startAnimation = function() {
if (this._isRunning)
return;
this._isRunning = true;
window.webkitRequestAnimationFrame(this._animationFrameCallbackBound);
window.requestAnimationFrame(this._animationFrameCallbackBound);
};
AnimationManager.prototype._stopAnimation = function() {
......@@ -960,7 +960,7 @@ AnimationManager.prototype._animationFrameCallback = function(now) {
}
this.dispatchEvent(AnimationManager.EventTypeAnimationFrameWillFinish);
if (this._isRunning)
window.webkitRequestAnimationFrame(this._animationFrameCallbackBound);
window.requestAnimationFrame(this._animationFrameCallbackBound);
};
/**
......@@ -1044,7 +1044,7 @@ Animator.prototype.isRunning = function() {
};
Animator.prototype.start = function() {
this._lastStepTime = Date.now();
this._lastStepTime = performance.now();
this._isRunning = true;
AnimationManager.shared.add(this);
};
......@@ -1208,7 +1208,7 @@ FlingGestureAnimator.prototype._timeAtVelocity = function(v) {
};
FlingGestureAnimator.prototype.start = function() {
this._lastStepTime = Date.now();
this._lastStepTime = performance.now();
Animator.prototype.start.call(this);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment