Commit de7cf13e authored by samli@chromium.org's avatar samli@chromium.org

Devtools Animations: Update only page targets

BUG=447083

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

git-svn-id: svn://svn.chromium.org/blink/trunk@201735 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent e2b096e6
......@@ -206,9 +206,9 @@ WebInspector.AnimationTimeline.prototype = {
{
if (this.startTime() === undefined)
return;
var targets = WebInspector.targetManager.targets();
for (var target of targets)
for (var target of WebInspector.targetManager.targets(WebInspector.Target.Type.Page))
target.animationAgent().setCurrentTime(/** @type {number} */(this.startTime()));
this._animateTime(0);
},
......@@ -507,8 +507,7 @@ WebInspector.AnimationTimeline.prototype = {
this._scrubberPlayer.currentTime = Math.min(this._originalScrubberTime + delta / this.pixelMsRatio(), this.duration() - this._scrubberRadius / this.pixelMsRatio());
var currentTime = Math.max(0, Math.round(this._scrubberPlayer.currentTime));
this._timelineScrubberHead.textContent = WebInspector.UIString(Number.millisToString(currentTime));
var targets = WebInspector.targetManager.targets();
for (var target of targets)
for (var target of WebInspector.targetManager.targets(WebInspector.Target.Type.Page))
target.animationAgent().setCurrentTime(/** @type {number} */(this.startTime() + currentTime));
},
......
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