gecko/layout
Brian Birtles 85688c0d50 Bug 1081007 - Fix relationship between Play/PlayFromJS/PlayFromStyle etc.; r=dholbert
The existing relationship between the particular versions of
AnimationPlayer::Play* (particularly in the CSSAnimationPlayer) subclass are
confusing because, for example, CSSAnimationPlayer::PlayFromStyle needs to be
careful to *not* call Play on CSSAnimationPlayer, but only on the parent
object (since otherwise we reset the sticky pause behavior).

This patch reworks this relationship by adding a protected DoPlay method that
performs the common pausing behavior. Play/PlayFromJS/PlayFromStyle then add
flushing, sticky pausing etc. as necessary.

This patch also removes the UpdateFlags enum and parameters previously used to
control whether we forced an update to style. This is no longer necessary since
we no longer call 'Play' from style. Instead we make Play always post restyles.

If we come across a case where we want to call Play and *not* post restyles, we
can re-add the flags then.

Roughly the same arrangement is true for Pause except that we don't currently
flush styles for CSS animations in PauseFromJS since it currently won't make any
observable difference.
2014-11-17 13:46:01 +09:00
..
analysis
base Bug 1073336 part 16 - Factor out animation-layer related information to a common database; r=dbaron 2014-11-17 13:46:00 +09:00
build Bug 1089912: Part 2, move mixedcontentblocker into dom/security (r=tanvi,jst) 2014-10-28 09:44:11 -07:00
doc
forms Bug 1093553 - Improve handling of line-height metrics, block ascent, etc., in vertical writing mode. r=smontagu 2014-11-13 08:58:06 +00:00
generic Backed out 2 changesets (bug 1084183) for b2g crashes 2014-11-16 20:21:55 -08:00
inspector No bug - Get rid of some unnecessary nsRenderingContext.h includes and nsRenderingContext forward declarations. 2014-11-06 22:07:35 +00:00
ipc Bug 1085655 - Improve TabChild::InitRenderingState() r=bent 2014-11-16 10:23:22 -08:00
mathml Backed out changesets 857063c82323 and a19479860eb4 (bug 619521) for Valgrind failures. 2014-11-11 13:10:56 -05:00
media Bug 1077148 part 4 - Add and use new moz.build templates for Gecko programs and libraries. r=gps 2014-10-30 13:06:12 +09:00
printing Bug 651021 - Make nsRenderingContext a stack class. r=jrmuizel 2014-10-31 20:08:49 +00:00
reftests Backed out 2 changesets (bug 1084183) for b2g crashes 2014-11-16 20:21:55 -08:00
style Bug 1081007 - Fix relationship between Play/PlayFromJS/PlayFromStyle etc.; r=dholbert 2014-11-17 13:46:01 +09:00
svg Bug 1096260 - Convert flags parameter of nsIFrame::ComputeSize from uint32_t to a typed enum, and update callers accordingly. r=dholbert 2014-11-11 11:02:41 +00:00
tables Bug 1096260 - Convert flags parameter of nsIFrame::ComputeSize from uint32_t to a typed enum, and update callers accordingly. r=dholbert 2014-11-11 11:02:41 +00:00
tools Bug 1094037 - Move EXTRA_COMPONENTS and EXTRA_PP_COMPONENTS to the misc tier. r=gps 2014-11-06 09:29:11 +09:00
xul Merge fx-team to m-c. a=merge 2014-11-13 15:40:39 -05:00
moz.build