Commit Graph

31 Commits

Author SHA1 Message Date
Brian Birtles
59f2c4324c Bug 1179111 part 3 - Make DevTools read the appropriate name property; r=pbrosset 2015-07-01 14:50:49 +09:00
Carsten "Tomcat" Book
36e386f374 Backed out changeset 17bcfd0ff1df (bug 1179111) 2015-07-07 14:21:39 +02:00
Brian Birtles
bde85dcba5 Bug 1179111 part 3 - Make DevTools read the appropriate name property; r=pbrosset 2015-07-01 14:50:49 +09:00
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
Tooru Fujisawa
22a3f8a30f Bug 1102219 - Part 5: Replace more String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Patrick Brosset
e5ff608b97 Bug 1155651 - Return all players below a node in getAnimationPlayersForNode; r=miker
Now when the front requests the list of AnimationPlayers for a node,
all players for this node + the nodes in its subtree are returned.
Also the mutationobserver starts observing all mutations in the node
and its subtree.
2015-04-21 09:22:30 +02:00
Patrick Brosset
f1fe3e313e Bug 1149999 - 2 - Send animation removed events to the animation-panel for re-starting transitions; r=past
When transitions re-start (when a css class is toggled for instance), new AnimationPlayer objects
are created everytime. But now (since bug 1122414) names are given for AnimationPlayers that
correspond to transitions, and so we can use that to know when a transition re-starts on a node
and therefore send the correct events to the animation-panel.
2015-04-16 10:20:21 +02:00
Brian Birtles
a474c0c6c3 Bug 1153734 part 3 - Rename AnimationPlayer.source to AnimationPlayer.effect; r=smaug
There are still some other references to "source" in AnimationPlayer such as
HasInPlayerSource and UpdateSourceContent. These are renamed in a subsequent
patch (that doesn't require DOM peer review).
2015-04-15 08:48:21 +09:00
Brian Birtles
f3bbfe1012 Bug 1153734 part 1 - Remove AnimationEffect; r=smaug
Most of this is fairly obvious. However, the addition of 'override' to
ElementPropertyTransition::Name() is not strictly necessary. It was simply added
because while making these changes I accidentally dropped the 'virtual' keyword
from the method in the superclass and the compiler didn't complain. Adding this
will hopefully make it harder to create the same bug in the future.
2015-04-15 08:48:20 +09: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
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
30850f3c55 Bug 1120833 - 2 - Fire events about changed animations in the AnimationsActor; r=past
This makes the AnimationsActor listen for animation mutations after each
call to getAnimationPlayersForNode on the code that was passed in.
Whenever animations are added or removed, an event is sent to the front
with the list of changes.
The server doesn't know when the client doesn't require updates for the
current node anymore, so it exposes a new method for this.
Note that removed events for finished aniations are skipped, because the
corresponding animations can still be seeked/resumed, so we want the
AnimationPlayerActor to be preserved.
2015-04-02 12:47:34 +02:00
Patrick Brosset
389c29aaa5 Bug 1120833 - 1 - Remove EventEmitter usage in AnimationPlayerFront
The AnimationPlayerFront needs to emit events when its auto-refresh
mode is enabled, whenever the state changes. Until now, it was doing
so with EventEmitter.
But because decorating the class with EventEmitter adds on/once/off
functions to the instance, it ends up hiding the on/once/off functions
that were already there because the class extends addon sdk EventTarget.
2015-03-30 11:59:46 +02:00
Jonathan Watt
617703f961 Bug 1145246, part 4 - Update devtools code for the rename of Animatable.getAnimationPlayers() to Animatable.getAnimations(). r=pbrosset 2015-03-20 18:20:55 +00:00
Patrick Brosset
052adbdde0 Bug 1120339 - Add setPlaybackRate method to AnimationPlayerActor; r=past 2015-03-25 18:56:54 +01:00
Brian Birtles
b7438ed328 Bug 1109390 part 4 - Make DevTools animation actor wait for asynchronous pause; r=pbrosset
Although pause() is not yet asynchronous, any time we finish calling it the
ready promise should be resolved so we can safely wait on the ready promise
after calling pause already. This way, once pause() becomes async later in this
bug, code relying on this actor will continue to work.
2015-03-24 09:21:08 +09:00
Patrick Brosset
bace0b5df1 Bug 1110762 - Add a setCurrentTime method to the animation actor; r=past 2015-03-16 11:29:14 +01:00
Patrick Brosset
6e28b71ad8 Bug 1122466 - Retrieve correct animation index from node's computed styles; r=miker 2015-02-12 07:57:00 +01:00
Patrick Brosset
31ff8dcaf8 Bug 1129454 - 1 - Adds [play|pause]All methods to the AnimationsActor to pause/play all running animations; r=miker 2015-02-12 16:28:42 +01:00
Patrick Brosset
8ff171e0be Bug 1122435 - Part 2: Stop auto-refreshing AnimationPlayerActor's state when the animation has ended. r=miker 2015-01-16 01:42:00 -05:00
Patrick Brosset
79e4542042 Bug 1122435 - Part 1: Reduce the animation player protocol traffic by only sending values that did change. r=miker 2015-01-16 01:39:00 -05:00
Patrick Brosset
56b9d273dd Bug 1120852 - 1 - Expose the animation delay on the animationplayer actor; r=bgrins 2015-01-14 14:59:38 +01:00
Patrick Brosset
252918d3db Bug 1113091 - Make the AnimationPlayerActor aware of the player ready promise; r=bgrins 2015-01-09 15:21:05 +01:00
Brian Birtles
adf3daeb54 Bug 927349 part 27 - Make DevTools actor wait on ready promise when playing; r=pbrosset 2014-12-25 16:28:25 +09:00
Brian Birtles
18cadb3d11 Back out parts 22-29 from bug 927349 for causing intermittent test failure in css-animations/test_animation-pausing.html on 10.8 2014-12-26 11:54:43 +09:00
Brian Birtles
726cc33622 Bug 927349 part 29 - Disable failing browser_555547.js on Windows opt - pushed again without backing out parts 22-29 at the same time; r=me
In https://hg.mozilla.org/integration/mozilla-inbound/rev/3ab2ff9b9f94
I accidentally pushed part 29 along with a backout for parts 22-29. This patch
reverts that change.

If this changset causes problems, the following changesets should be backed out:

https://hg.mozilla.org/integration/mozilla-inbound/rev/477f46897b0b
https://hg.mozilla.org/integration/mozilla-inbound/rev/6c345954bce5
https://hg.mozilla.org/integration/mozilla-inbound/rev/642e400b22a9
https://hg.mozilla.org/integration/mozilla-inbound/rev/9bdf7c2279fa
https://hg.mozilla.org/integration/mozilla-inbound/rev/79cac8c71159
https://hg.mozilla.org/integration/mozilla-inbound/rev/cfe757e478d5
https://hg.mozilla.org/integration/mozilla-inbound/rev/eaf834051cbd
2014-12-26 08:49:20 +09:00
Brian Birtles
d2979fe812 Bug 927349 part 29 - Disable failing browser_555547.js on Windows opt; r=me (as discussed with jwatt) 2014-12-25 16:31:55 +09:00
Brian Birtles
821aa65be5 Bug 927349 part 27 - Make DevTools actor wait on ready promise when playing; r=pbrosset 2014-12-25 16:28:25 +09:00
Patrick Brosset
8a13c171ae Bug 1105825 - Add auto state refresh to AnimationPlayerActors; r=bgrins 2014-12-22 17:56:41 +01:00
Patrick Brosset
0d8adbba7f Bug 1096044 - Add new actors to surface Web Animations API objects and methods to the devtools; r=harth 2014-12-11 20:08:49 +01:00