gecko-dev/dom/animation/test
Boris Chiou b5a2513e31 Bug 1534884 - Add new animation warning for animations overridden by important rules. r=birtles
We move the check of important rule and animation level into
KeyframeEffect::ShouldBlockAsyncTransformAnimations(), and add a new warning
for it.

Note:
1. ShouldBlockAsyncTransformAnimations() only cares about transforms. And
   for other compositor animation properties, we count on
   HasEffectiveAnimationOfPropertySet() (in IsMatchForCompositor()).
2. If we check the important rules in both
   EffectCompositor::HasAnimationsForCompositor() and
   ActiveLayerTracker::IsTransformMaybeAnimated(), we may get the incorrect
   animation warnings (i.e. TransformFrameInactive). In most cases, we
   check these two functions together, so perhaps move the check of important
   rules outside HasEffectiveAnimationOfPropertySet() is fine.
   Besides, ActiveLayerTracker just tracks if there is a style change on this
   property (or display item) on the active layers, so should be OK to not
   check important rules in it.

So IsMatchForCompositor() should check all transform-like properties,
instead of each one, to get the correct result. (That's why we have to
refactor KeyframeEffect::GetPropertiesForCompositor() as well.)

Differential Revision: https://phabricator.services.mozilla.com/D34432

--HG--
extra : moz-landing-system : lando
2019-06-28 18:18:08 +00:00
..
chrome Bug 1534884 - Add new animation warning for animations overridden by important rules. r=birtles 2019-06-28 18:18:08 +00:00
crashtests Bug 1524480 - Set NS_FRAME_MAY_BE_TRANSFORMED bit when we have nsChangeHint_UpdateTransformLayer; r=hiro 2019-02-15 06:35:55 +00:00
document-timeline Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
mozilla Bug 1556855 part 2: Update tests to assume that 'layout.css.prefixes.webkit' is already true. r=mats 2019-06-05 18:22:39 +00:00
style Bug 1558527 - Fix various issues related to shadowing of variables in dom/ code. r=mccr8 2019-06-12 08:29:58 +00:00
chrome.ini Bug 1253476 - Don't composite removed animations; r=boris 2019-05-20 05:55:52 +00:00
mochitest.ini Bug 1253476 - Add tests that removing is triggered at the right time; r=boris 2019-05-20 05:22:16 +00:00
testcommon.js