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

Issue 1081753002: Devtools Animations: Support multiple frames in the animation timeline (Closed)

Created:
5 years, 8 months ago by samli
Modified:
5 years, 8 months ago
Reviewers:
dstockwell, pfeldman
CC:
aandrey+blink_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, caseq+blink_chromium.org, devtools-reviews_chromium.org, dstockwell, Eric Willigers, kozyatinskiy+blink_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, Mike Lawther (Google), pfeldman+blink_chromium.org, rjwright, sergeyv+blink_chromium.org, shans, Steve Block, Timothy Loh, yurys+blink_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Devtools Animations: Support multiple frames in the animation timeline Currently, the animation timeline only works for animations attached to the main document frame. This change ensures the inspector agent is properly attached to all frames within a document. All start times sent to the front end are normalised to the main frame timeline. When seeking a timeline, the main frame timeline always understands these time values. This information is then used to seek all other local frames. BUG=466827 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193855

Patch Set 1 #

Patch Set 2 : Test #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : Set playback rate on new frames #

Total comments: 2

Patch Set 5 : New frame instrumentation on agent #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -11 lines) Patch
A LayoutTests/inspector-protocol/animation/animation-multiple-frames.html View 1 1 chunk +45 lines, -0 lines 0 comments Download
A LayoutTests/inspector-protocol/animation/animation-multiple-frames-expected.txt View 1 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/inspector-protocol/resources/test-page-trigger-animation.html View 1 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorAnimationAgent.h View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorAnimationAgent.cpp View 1 2 3 4 5 6 chunks +32 lines, -5 lines 0 comments Download
M Source/core/inspector/InspectorInstrumentation.idl View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/front_end/elements/AnimationControlPane.js View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M Source/devtools/front_end/elements/AnimationTimeline.js View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M Source/devtools/front_end/sdk/AnimationModel.js View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
samli
5 years, 8 months ago (2015-04-13 01:16:51 UTC) #2
samli
PTAL.
5 years, 8 months ago (2015-04-13 04:04:50 UTC) #4
dstockwell
https://codereview.chromium.org/1081753002/diff/20001/Source/core/inspector/InspectorAnimationAgent.cpp File Source/core/inspector/InspectorAnimationAgent.cpp (right): https://codereview.chromium.org/1081753002/diff/20001/Source/core/inspector/InspectorAnimationAgent.cpp#newcode314 Source/core/inspector/InspectorAnimationAgent.cpp:314: if (normalizedStartTime(*player) - latestStartTime > 1000) { While we're ...
5 years, 8 months ago (2015-04-13 22:50:01 UTC) #5
samli
ptal https://codereview.chromium.org/1081753002/diff/20001/Source/core/inspector/InspectorAnimationAgent.cpp File Source/core/inspector/InspectorAnimationAgent.cpp (right): https://codereview.chromium.org/1081753002/diff/20001/Source/core/inspector/InspectorAnimationAgent.cpp#newcode314 Source/core/inspector/InspectorAnimationAgent.cpp:314: if (normalizedStartTime(*player) - latestStartTime > 1000) { On ...
5 years, 8 months ago (2015-04-14 01:11:27 UTC) #6
pfeldman
https://codereview.chromium.org/1081753002/diff/60001/Source/devtools/front_end/elements/AnimationTimeline.js File Source/devtools/front_end/elements/AnimationTimeline.js (right): https://codereview.chromium.org/1081753002/diff/60001/Source/devtools/front_end/elements/AnimationTimeline.js#newcode181 Source/devtools/front_end/elements/AnimationTimeline.js:181: target.animationModel.setPlaybackRate(this._animationsPlaybackRate); You want to instrument it on the backend ...
5 years, 8 months ago (2015-04-14 09:37:54 UTC) #7
samli
https://codereview.chromium.org/1081753002/diff/60001/Source/devtools/front_end/elements/AnimationTimeline.js File Source/devtools/front_end/elements/AnimationTimeline.js (right): https://codereview.chromium.org/1081753002/diff/60001/Source/devtools/front_end/elements/AnimationTimeline.js#newcode181 Source/devtools/front_end/elements/AnimationTimeline.js:181: target.animationModel.setPlaybackRate(this._animationsPlaybackRate); On 2015/04/14 09:37:53, pfeldman wrote: > You want ...
5 years, 8 months ago (2015-04-15 03:19:16 UTC) #8
pfeldman
https://codereview.chromium.org/1081753002/diff/80001/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/1081753002/diff/80001/Source/core/frame/LocalDOMWindow.cpp#newcode380 Source/core/frame/LocalDOMWindow.cpp:380: InspectorInstrumentation::documentAttachedToFrame(frame()); I wonder if we could (ab)use the didClearDocumentOfWindowObject ...
5 years, 8 months ago (2015-04-15 17:56:33 UTC) #9
samli
ptal https://codereview.chromium.org/1081753002/diff/80001/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/1081753002/diff/80001/Source/core/frame/LocalDOMWindow.cpp#newcode380 Source/core/frame/LocalDOMWindow.cpp:380: InspectorInstrumentation::documentAttachedToFrame(frame()); On 2015/04/15 17:56:33, pfeldman wrote: > I ...
5 years, 8 months ago (2015-04-16 01:37:37 UTC) #10
pfeldman
Awesome! lgtm.
5 years, 8 months ago (2015-04-16 05:45:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081753002/100001
5 years, 8 months ago (2015-04-16 07:33:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081753002/100001
5 years, 8 months ago (2015-04-16 09:32:47 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 11:20:31 UTC) #17
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193855

Powered by Google App Engine
This is Rietveld 408576698