gecko-dev/dom/animation
Hiroyuki Ikezoe 84aff91995 Bug 1336772 - Request any restyles required by changes to the cascade result. r=birtles
When an animation is newly created while the same property transition is
running, the transition style rule persists until we call RequestRestyle() for
transitions level. That means if user calls getComputedStyle for the property
right after creating animation, the style obtained by getComputedStyle still
included the transitions level rule. As a result, the transitions level style
overrides newly created animation style until the next normal restyling process
happens (i.e. process transition level restyle request). Vice versa, in the
case where an animation is removed, transitions level style does not appear
until the next normal restyling.

This patch fixes this problem by trigerring a resyle of the transitions level
when an animation is created or removed.

MozReview-Commit-ID: HY6amLmDHTi

--HG--
extra : rebase_source : 67e58dc9a6c695299c3eef684bf7357153c5168b
2017-09-05 16:34:24 +09:00
..
test Bug 1336772 - Request any restyles required by changes to the cascade result. r=birtles 2017-09-05 16:34:24 +09:00
Animation.cpp Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
Animation.h Bug 1340958 - Templatize ComposeStyle. r=birtles 2017-03-17 13:22:13 +09:00
AnimationComparator.h
AnimationEffectReadOnly.cpp Bug 1367975 - Call RequestRestyle(Layer) when specified timing is changed for CSS animations. r=birtles 2017-08-03 06:34:38 +09:00
AnimationEffectReadOnly.h Bug 1301305 - Add AnimationEffectReadOnly::AffectsGeometry() helper to identify effects that animate geometric properties; r=hiro 2016-12-02 10:04:08 +09:00
AnimationEffectTiming.cpp Bug 1374882 - Insert 'Timing' word into the names for setter/getter for timing function. r=birtles 2017-06-22 12:12:43 +09:00
AnimationEffectTiming.h
AnimationEffectTimingReadOnly.cpp Bug 1374882 - Insert 'Timing' word into the names for setter/getter for timing function. r=birtles 2017-06-22 12:12:43 +09:00
AnimationEffectTimingReadOnly.h Bug 1374882 - Encapsulate TimingParams's member variables. r=birtles 2017-06-22 12:12:43 +09:00
AnimationPerformanceWarning.cpp Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron. 2017-08-04 14:40:52 +10:00
AnimationPerformanceWarning.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
AnimationPropertySegment.h Bug 1311257 - Move AnimationPropertySegment in a separate header and expose it in FFI. r=heycam 2017-04-06 10:34:50 +09:00
AnimationTarget.h Bug 1318223 - Use NonOwningAnimationTarget in OwningElementRef. r=boris, r=birtles 2017-03-26 16:46:00 -04:00
AnimationTimeline.cpp Bug 1374125 - Use EnsureInserted instead of Contains+PutEntry to avoid unnecessary hashtable lookups. r=froydnj 2017-06-19 18:19:14 +02:00
AnimationTimeline.h
AnimationUtils.cpp Bug 1333846 - Part 1: Move ContainsAnimatedScale() codes into dom/animation/. r=birtles a=abillings 2017-02-09 11:28:47 +09:00
AnimationUtils.h Bug 1382545 - Part 1: Rounding the time of Animation API to 100ms when 'privacy.resistFingerprinting'is true. r=arthuredelstein,birtles 2017-08-17 22:37:29 +08:00
AnimValuesStyleRule.cpp Bug 1384542: Move GetParent and IsLinkContext to GeckoStyleContext. r=heycam 2017-07-31 14:32:59 +02:00
AnimValuesStyleRule.h Bug 1305325 - Part 2: Add AnimValuesStyleRule::GetValue and HasValue to get the last composed style. r=birtles 2016-12-04 08:07:39 +09:00
ComputedTiming.h Bug 1264125 part 10 - Remove unnecessary whitespace and align the colum of variable definition on ComputedTiming.h. r=whitespace-only DONTBUILD 2017-04-27 09:10:44 +09:00
ComputedTimingFunction.cpp Bug 1248340 - Part 2: Implement Frames in ComputedTimingFunction. r=birtles 2017-02-24 16:59:02 +08:00
ComputedTimingFunction.h Bug 1354947 - Add equal operators for comparing ComputedTimingFunction with nsTimingFunction. r=birtles 2017-05-13 16:34:38 +09:00
CSSPseudoElement.cpp Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky 2017-01-05 15:31:56 +08:00
CSSPseudoElement.h
DocumentTimeline.cpp Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
DocumentTimeline.h
EffectCompositor.cpp Bug 1336772 - Request any restyles required by changes to the cascade result. r=birtles 2017-09-05 16:34:24 +09:00
EffectCompositor.h Bug 1336772 - Request any restyles required by changes to the cascade result. r=birtles 2017-09-05 16:34:24 +09:00
EffectSet.cpp Bug 1361183 - Check Element::MayHaveAnimations() in EffectSet::GetEffectSet(). r=birtles 2017-05-02 07:25:50 +09:00
EffectSet.h Bug 1205475 - (followup) Declare mMayHaveOpacityAnim and mMayHaveTransformAnim as bool. r=me 2017-05-23 21:47:46 +08:00
Keyframe.h Bug 1381389 - Append PropertyValuePair objects on Gecko side so they are initialized correctly; r=hiro 2017-07-20 14:38:54 +09:00
KeyframeEffect.cpp Bug 1339690 - Part 3: Drop spacing mode. r=birtles,smaug 2017-06-13 15:09:19 +08:00
KeyframeEffect.h Bug 1339690 - Part 3: Drop spacing mode. r=birtles,smaug 2017-06-13 15:09:19 +08:00
KeyframeEffectParams.h Bug 1339690 - Part 3: Drop spacing mode. r=birtles,smaug 2017-06-13 15:09:19 +08:00
KeyframeEffectReadOnly.cpp Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
KeyframeEffectReadOnly.h Bug 1381844: Be more explicit about the kind of style context we handle all the time. r=bholley 2017-07-22 18:02:57 +02:00
KeyframeUtils.cpp Bug 1381764: Cleanup the Gecko bits. r=manishearth 2017-07-18 16:22:00 -07:00
KeyframeUtils.h Bug 1382017 part 4 Gecko piece - Remove usage of ServoComputedValues from most Gecko code; r=xidorn 2017-07-20 17:27:05 -07:00
moz.build Bug 1339690 - Part 3: Drop spacing mode. r=birtles,smaug 2017-06-13 15:09:19 +08:00
PendingAnimationTracker.cpp Bug 1301305 - Extend PendingAnimationTracker to mark play-pending animations if there are geometric animations starting at the same time; r=hiro 2016-12-02 10:10:44 +09:00
PendingAnimationTracker.h Bug 1301305 - Extend PendingAnimationTracker to mark play-pending animations if there are geometric animations starting at the same time; r=hiro 2016-12-02 10:10:44 +09:00
PseudoElementHashEntry.h
TimingParams.cpp Bug 1374882 - Precompute active duration and end time. r=birtles 2017-06-22 12:12:43 +09:00
TimingParams.h Bug 1374882 - Insert 'Timing' word into the names for setter/getter for timing function. r=birtles 2017-06-22 12:12:43 +09:00