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)

defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
Firefox 46
Tracking Status
firefox46 --- fixed

People

(Reporter: pbro, Assigned: pbro)

References

Details

Attachments

(1 file)

The WebAnimations API exposes a getComputedTiming function that we should use to get rid of CSS parsing in the AnimationPlayerActor.
Blocks: 1232681
Component: Developer Tools: Inspector → Developer Tools: Animation Inspector
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]
Mentor: pbrosset
Whiteboard: [good next bug][lang=js]
Ended up taking this bug as we'll need these changes sooner rather than later.
Assignee: nobody → pbrosset
Status: NEW → ASSIGNED
Attachment #8700554 - Flags: review?(ttromey)
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+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
[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
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: