Closed
Bug 1231688
Opened 9 years ago
Closed 9 years ago
Refactor AnimationPlayerActor's getDuration/Delay/... by using waapi's getComputedTiming
Categories
(DevTools :: Inspector: Animations, defect)
DevTools
Inspector: Animations
Tracking
(firefox46 fixed)
RESOLVED
FIXED
Firefox 46
Tracking | Status | |
---|---|---|
firefox46 | --- | fixed |
People
(Reporter: pbro, Assigned: pbro)
References
Details
Attachments
(1 file)
8.06 KB,
patch
|
tromey
:
review+
|
Details | Diff | Splinter Review |
The WebAnimations API exposes a getComputedTiming function that we should use to get rid of CSS parsing in the AnimationPlayerActor.
Assignee | ||
Updated•9 years ago
|
Component: Developer Tools: Inspector → Developer Tools: Animation Inspector
Assignee | ||
Comment 1•9 years ago
|
||
I think this is a simple enough bug, and the various automated tests we have should be a good safety net here.
Here is an example of getting timing information from the animation API:
let timing = element.getAnimations()[0].effect.getComputedTiming();
Using this should help us clean up AnimationPlayerActor a lot:
get rid of playerIndex and getPlayerIndex, and massively simplify getDuration, getDelay and getIterationCount.
If anyone is interested, this is a good code clean-up bug, I can mentor if needed.
The file where these changes are needed is \devtools\server\actors\animation.js
Mentor: pbrosset
Whiteboard: [good next bug][lang=js]
Assignee | ||
Updated•9 years ago
|
Mentor: pbrosset
Whiteboard: [good next bug][lang=js]
Assignee | ||
Comment 2•9 years ago
|
||
Ended up taking this bug as we'll need these changes sooner rather than later.
Assignee: nobody → pbrosset
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8700554 [details] [diff] [review]
Bug_1231688_-_Use_waapi_computed_timing_in_devtool.diff
https://treeherder.mozilla.org/#/jobs?repo=try&revision=28c5819e89d7
Attachment #8700554 -
Flags: review?(ttromey)
Comment 4•9 years ago
|
||
Comment on attachment 8700554 [details] [diff] [review]
Bug_1231688_-_Use_waapi_computed_timing_in_devtool.diff
Review of attachment 8700554 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. Nice cleanup!
Attachment #8700554 -
Flags: review?(ttromey) → review+
Comment 6•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
Comment 7•9 years ago
|
||
[bugday-20160323]
Status: RESOLVED,FIXED -> UNVERIFIED
Comments:
STR: Not clear.
Developer specific testing
Component:
Name Firefox
Version 46.0b9
Build ID 20160322075646
Update Channel beta
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
OS Windows 7 SP1 x86_64
Expected Results:
Developer specific testing
Actual Results:
As expected
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•