Commit Graph

19 Commits

Author SHA1 Message Date
Patrick Brosset
92153696ea Bug 1155663 - Show animations as synchronized time blocks in animation inspector; r=bgrins
This is the first step towards the animation-inspector UI v3 (bug 1153271).
The new UI is still hidden behind a pref, and this change doesn't implement
everything that is in the current v2 UI.
This introduces a new Timeline graph to represent all currently animated nodes
below the currently selected node.
v2 used to show them as independent player widgets. With this patch, we now show
them as synchronized time blocks on a common time scale.
Each animation has a preview of the animated node in the left sidebar, and a time
block on the right, the width of which represents its duration. The animation name
is also displayed.
There's also a time graduations header and background that gives the user information
about how long do the animations last.
This change does *not* provide a way to know what's the currentTime nor a way to
set it yet.
This also makes the existing animationinspector tests that still make sense with
the new timeline-based UI run with the new UI pref on.
2015-06-11 15:45:57 +02:00
Patrick Brosset
b63112fcdc Bug 1155653 - Preview animation target nodes in animationinspector panel; r=bgrins
This adds a generic walker method that cna be used to retrieve AnimationPlayerActor's
target DOM nodes in a way that they can be highlighted/selected later in the inspector.
Making the AnimationPlayerActor return the nodeActor directly wouldn't fully work, as
the walker would have missed the missing parent nodeFronts updates.
On the UI, this adds a new component in each PlayerWidget that displays a preview of the
target DOM nodes, highlight them on hover, and select them on click.
2015-05-04 13:55:51 +02:00
Patrick Brosset
677c354d4c Bug 1149999 - 1 - Display transition names in animation-panel now that they have names; r=past
The WebAnimations API now returns names for CSS transitions too. The existing mechanism
in the animation-panel doesn't need to be changed for these names to appear, but some
comments needed modifying.
2015-04-16 10:41:37 +02:00
Brian Grinstead
8216c7e38f Bug 1153903 - Get rid of logspam during devtools talos test runs;r=pbrosset 2015-04-16 09:54:04 -07:00
Patrick Brosset
1d6311ebb5 Bug 1151018 - Refresh the list of Animation widgets when the animation panel loads; r=bgrins
Instead of only refreshing the list of animation widgets when the animations
controller emits an event, also refresh it once after the initialization is
done. This is useful to avoid missing animations that are already applied to
the default inspector selection.
2015-04-07 15:11:18 +02:00
Patrick Brosset
977c0dc71b Bug 1120833 - 3 - Refresh the list of animation widgets when new animations are added; r=miker
(Re-land after backout)
The animation-controler was in charge of getting new animation players and refreshing
the UI when done. This is still the case, but it now listens for mutation events from
the actor too, and when they happen, it simply asks the ui to refresh again.
Also, animations with playState "finished" that remain in the animation inspector panel
can now be played again.
2015-04-01 10:16:40 +02:00
Patrick Brosset
eb87dc2fc8 Bug 1144615 - 2 - Adds a playbackRate selector widget to the animation panel; r=vporof
This adds a playbackRate <select> dropdown next to the list of other playback
control buttons (play/pause, rw, fwd).
The list shows presets, unless the current rate isn't part of these presets
in which case it also shows this rate in the list.
The widget was created as a reusable component with a simple API, like the
PlayerMetaDataHeader.
2015-04-02 12:24:46 +02:00
Ryan VanderMeulen
d431ace806 Backed out 3 changesets (bug 1120833, bug 1149711) for causing bug 1150615.
Backed out changeset 527c548ff03c (bug 1149711)
Backed out changeset 2fe22ffef154 (bug 1120833)
Backed out changeset 501fa7c170ed (bug 1120833)

CLOSED TREE
2015-04-02 14:42:05 -04:00
Patrick Brosset
04f75d015f Bug 1120833 - 3 - Refresh the list of animation widgets when new animations are added; r=miker
The animation-controler was in charge of getting new animation players and refreshing
the UI when done. This is still the case, but it now listens for mutation events from
the actor too, and when they happen, it simply asks the ui to refresh again.
Also, animations with playState "finished" that remain in the animation inspector panel
can now be played again.
2015-04-01 10:16:40 +02:00
Patrick Brosset
bb7c6f1bb5 Bug 1120343 - 2 - Add rewind and fast-forward buttons to animation player widgets; r=miker 2015-03-17 15:39:19 +01:00
Patrick Brosset
66b72470da Bug 1120343 - 1 - Allow setting animations' currentTime by clicking/dragging the timeline; r=miker 2015-03-16 15:37:23 +01:00
Patrick Brosset
d38e70b8e6 Bug 1129454 - 2 - Adds a global play/pause button to the animation panel; r=vp 2015-02-12 16:28:42 +01:00
Patrick Brosset
e1517f0ed2 Bug 1120899 - Extract the animationplayer meta-data UI to a refreshable component; r=bgrins 2015-02-04 14:03:29 +01:00
Patrick Brosset
d385dd5cc8 Bug 1122437 - 4 - Do not display the iteration count in animationplayer widget if the value is 1; r=miker 2015-01-23 17:50:14 +01:00
Patrick Brosset
56772df034 Bug 1122437 - 3 - Prevent the animationplayer widget from displaying time after the animation duration; r=miker 2015-01-23 17:50:14 +01:00
Patrick Brosset
759584096c Bug 1122437 - 2 - Make sure animationplayer widgets display the right initial time when created; r=miker 2015-01-23 17:50:14 +01:00
Patrick Brosset
9235eb2b12 Bug 1122437 - 1 - Disable animationplayer widgets when the corresponding animation ends; r=miker 2015-01-23 17:50:14 +01:00
Patrick Brosset
3a6ab87671 Bug 1120852 - 2 - Don't start the animation timeline UI before the animation delay has passed; r=bgrins 2015-01-15 10:40:55 +01:00
Patrick Brosset
2aab49fd92 Bug 1105825 - 4 - Adds a simple animation inspector panel to the inspector sidebar; r=bgrins r=vporof 2015-01-10 19:51:46 +01:00