Граф коммитов

215 Коммитов

Автор SHA1 Сообщение Дата
Hiroyuki Ikezoe 22056382c0 Bug 1504065 - Run background-color animations on the compositor. r=birtles
Changes for nsIDOMWindowUtils.getOMTAValue is in the next commit with come test
cases.

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

--HG--
extra : moz-landing-system : lando
2018-11-28 00:58:46 +00:00
Andreea Pavel f97b59258b Backed out 2 changesets (bug 1504065) for failing Win reftest at child-in-animating-element-display-none.html on a CLOSED TREE
Backed out changeset 129188370231 (bug 1504065)
Backed out changeset 359e81b35cfb (bug 1504065)
2018-11-27 15:33:29 +02:00
Hiroyuki Ikezoe 212fa4884a Bug 1504065 - Run background-color animations on the compositor. r=birtles
Changes for nsIDOMWindowUtils.getOMTAValue is in the next commit with come test
cases.

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

--HG--
extra : moz-landing-system : lando
2018-11-27 09:26:51 +00:00
Hiroyuki Ikezoe 5e079c773c Bug 1507675 - Rewrite test_animation_performance_warning.html with async/await. r=boris
Depends on D12086

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

--HG--
extra : moz-landing-system : lando
2018-11-16 02:48:41 +00:00
Hiroyuki Ikezoe a4c04af9af Bug 1507675 - Drop the second argument for then(). r=boris
The second argument should be a callback for reject case.

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

--HG--
extra : moz-landing-system : lando
2018-11-16 02:35:47 +00:00
Brian Birtles 8ce29aced8 Bug 1502026 - Only synchronize CSS transitions with CSS transitions; r=hiro
For some content both transitions and animations are triggered simultaneously.
As a result of bug 1301305, if the set of animations includes animations that
affect geometry, then we ensure that any transform animations are run on the
main thread, rather than on the compositor.

However, we have observed some content where this synchronizing is not necessary
and produces unnecessary jank. In the particular cases we have observed,
the transitions and animations do not need to be synchronized so this patch
refines the approach from bug 1301305 to only synchronize within the set of CSS
transitions or the set of non-transition animations.

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

--HG--
extra : moz-landing-system : lando
2018-11-01 00:15:45 +00:00
Mark Banner a26105ff45 Bug 1501662 - Add more .eslintrc.js files for test directories (dom, modules, netwerk and parser). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D9661

--HG--
extra : moz-landing-system : lando
2018-10-24 19:11:17 +00:00
Zibi Braniecki 83ea94f5ba Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame
Depends on D5924

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

--HG--
extra : moz-landing-system : lando
2018-09-21 15:30:37 +00:00
Hiroyuki Ikezoe aae11e059f Bug 1479246 - Use z-index for the property running on the main thread instead of background-color. r=boris
background-color animations will run on the compositor.  So we have to change
the property in tests which suppose that background-color animation runs on the
main-thread.

The reason why we use z-index is that the property produces only
nsChangeHint_RepaintFrame, thus it's throttled and won't be unthrottled
periodically on out-of-view elements just like background-color animations.

MozReview-Commit-ID: LZYs0qOGskh

--HG--
extra : rebase_source : f299e46a293db067f771ebd50be34ba9460e8ea7
2018-07-29 15:59:21 +09:00
Brian Birtles fc657410ff Bug 1471814 - Add a preference for implicit keyframes; r=bz,hiro
This preference controls whether authors are allowed to specify animations
without a 0% or 100% keyframe.

We intend to ship this soon but this preference acts as a safeguard in case we
discover we need to disable it.

This feature is very convenient and commonly used so this patch ensures it is
always enabled for system content.

MozReview-Commit-ID: BHTsuS2xO61

--HG--
rename : dom/animation/test/mozilla/file_disable_animations_api_core.html => dom/animation/test/mozilla/file_disable_animations_api_implicit_keyframes.html
rename : dom/animation/test/mozilla/test_disable_animations_api_core.html => dom/animation/test/mozilla/test_disable_animations_api_implicit_keyframes.html
extra : rebase_source : 04fd93dd26a4765c14b0b22febdb0311b650ea59
2018-07-14 09:23:03 +09:00
Brian Birtles 5d13151cb9 Bug 1471814 - Add a preference for Web Animations timelines; r=bz,hiro
We don't intend to ship this in the near future until the integration with
AnimationWorklet is clear (although we might ship a read-only version).

That said, we use this feature extensively internally (e.g. in DevTools etc.) so
we enable this feature for system callers.

MozReview-Commit-ID: AhB7ZmU1Xzw

--HG--
extra : rebase_source : 630d7dc56b44a9261bb34aa5417cb9b7050efba4
2018-07-14 09:23:03 +09:00
Hiroyuki Ikezoe c1fc73bb2d Bug 1253164 - Make nsIFrame allow running async animations once the frame is able able to run animations on the compositor again. r=birtles
For example, we don't run transform animations on large frames but once
the frame size is small enough we should run transform animations on the frame.

MozReview-Commit-ID: DkfB9g2Gcdi

--HG--
extra : rebase_source : 93a884c3063d4a6c2626e6695583664b24fe11c8
2018-06-07 09:30:33 +09:00
Brian Birtles 3c006b6e4c Bug 1456394 - Use updateTiming() in animation tests; r=hiro
We will remove animation.effect.timing in the next patch.

MozReview-Commit-ID: EyeFNM81NbN

--HG--
extra : rebase_source : 9fe5eb0e5d141ffffa017db255328c742a059611
2018-05-07 12:58:37 +09:00
Brian Birtles 3184f30162 Bug 1456394 - Merge KeyframeEffectReadOnly and KeyframeEffect; r=bz,hiro
MozReview-Commit-ID: FvTMGjxfRXk

--HG--
extra : rebase_source : 8f7fd0903c9ca2f545dce2633eb797345a7517f8
2018-05-07 11:08:59 +09:00
Hiroyuki Ikezoe 8e0dec0d90 Bug 1320608 - Make sure we wait for the next frame in the case where the animation started at the current frame. r=birtles
MozReview-Commit-ID: 2j2yEzPHUJI

--HG--
extra : rebase_source : cd8e8aa1c7181f87cae0100c3a5ae5ce5e498878
2018-05-09 05:54:15 +09:00
Hiroyuki Ikezoe 0a785d3998 Bug 1320608 - Test case for transform animation on table element. r=birtles
MozReview-Commit-ID: v9aNWucikJ

--HG--
extra : rebase_source : 4d7aeeb5427abe0f063412b467ae0c74e14012ca
2018-05-09 05:54:15 +09:00
Hiroyuki Ikezoe 374e5b3e07 Bug 1455999 - Drop isStyleByServo() in dom/animation/. r=birtles
We have already dropped the old style sytem.

MozReview-Commit-ID: I4RUlLHLAxr

--HG--
extra : rebase_source : d2f1bacd0c938da760ee37288c5df331de489f40
2018-04-24 08:50:12 +09:00
Emilio Cobos Álvarez 014cbed7df No bug: Update expectations for minor serialization changes. r=me
MozReview-Commit-ID: 3nq9Qbwy9td
2018-04-11 01:49:58 +02:00
Brian Birtles ee9982905f Bug 1420320 - Drop dom.animations-api.pending-member.enabled pref; r=bz,hiro
This pref was introduced in case we encountered compatibility issues from
changing the return value of Animation.playState (bug 1412765). Now that the
change to Animation.playState has shipped to release channel without any known
problems we should drop this pref.

MozReview-Commit-ID: CwMWRRtIf6u

--HG--
extra : rebase_source : b26c59a51880406c2b94baad8da2eafeb3ae3202
2018-03-16 12:49:55 +09:00
Hiroyuki Ikezoe 795bd7d475 Bug 1442150 - Wait for one more frame if the animation starts at the current timeline time in the first test case. r=birtles
MozReview-Commit-ID: DVOiauPDqhM

--HG--
extra : rebase_source : 2e9dfd0b7dbef48e92fbe48a5166ec6f3aafcabf
2018-03-06 10:55:05 +09:00
Hiroyuki Ikezoe 4bc9a2e83a Bug 1442150 - Rewrite test_running_on_compositor.html with async/await. r=birtles
MozReview-Commit-ID: Cdk7kQWcbXU

--HG--
extra : rebase_source : cc9b0e753c6b7804c7f0233cab0a2d3135118f28
2018-03-06 10:35:26 +09:00
Tooru Fujisawa 9a81f2437f Bug 1414674 - Do not enter the compartment of the target window when calling KeyframeEffect and KeyframeEffectReadOnly constructor via Xray. r=bz,birtles
KeyframeEffect and KeyframeEffectReadOnly constructors can run in the caller
compartment, which is okay because the current compartment is used in the
following places and all of them are safe:

1. GlobalObject::CallerType(), that is ultimately passed to
   nsDocument::IsWebAnimationsEnabled in KeyframeEffectParamsFromUnion,
   to decide whether to copy mIterationComposite/mComposite to
   KeyframeEffectParams.

   GlobalObject::CallerType() can now be different than the target window's one,
   if the caller has the system principal and the target is web content, and
   in that case nsDocument::IsWebAnimationsEnabled there always returns true
   while Web Animations can be disabled on web content.

   honoring the mIterationComposite/mComposite properties is OK, since it just
   changes the animation behavior, and this is disabled by default until
   remaining spec issues are resolved.

2. GlobalObject::Context(), that is ultimately passed to
   KeyframeUtils::GetKeyframesFromObject and used while extracting information
   from passed-in keyframe object, with iterable/iterator protocols.

   Performing that operation in the caller side is okay, since the same thing
   can be done on caller, and the operation doesn't perform any GCThing
   allocation on the target window global.
2018-02-17 17:21:13 +09:00
Tooru Fujisawa d70a10cbd8 Backed out changeset c3f16a179c93 (bug 1414674) 2018-02-18 01:24:08 +09:00
Tooru Fujisawa d58a217b1c Bug 1414674 - Do not enter the compartment of the target window when calling KeyframeEffect and KeyframeEffectReadOnly constructor via Xray. r=bz,birtles
KeyframeEffect and KeyframeEffectReadOnly constructors can run in the caller
compartment, which is okay because of the following reasons:

1. The target window global is used for most operation:
     * KeyframeEffectReadOnly::ConstructKeyframeEffect uses the target window
       global instead of current global.
     * KeyframeEffectParamsFromUnion which receives `aGlobal.CallerType()`

   In Xray case, Web Animations API can be disabled on web content
   (currently disabled on beta/release by default), and in that case some API
   won't work even it's triggered from WebExtensions, but it should be fine.

2. GetKeyframesFromObject is executed in the caller's compartment to access
   the passed-in JSObject that is keyframe, with iterable/iterator protocols.
   This operation doesn't perform any GCThing allocation on the target window
   global.
2018-02-17 17:21:13 +09:00
Hiroyuki Ikezoe d72d0dee6b Bug 1436642 - Make target element size larger to be unable to send transform animations to the compositor. r=jaws
The original value were too small for Android.

MozReview-Commit-ID: 4V6qC8orYNJ

--HG--
extra : rebase_source : 55ea0525bfaafa60d8e5d711cc70dd29d21acc78
2018-02-10 06:52:23 +09:00
Boris Zbarsky 7a9f022f1a Bug 1434819 part 7. Remove the SHOW_* constants from nsIDOMNodeFilter. r=qdot
MozReview-Commit-ID: 7E2KZkLfbSI
2018-02-01 14:26:12 -05:00
Hiroyuki Ikezoe e792071575 Bug 1424644 - Check pending state to make sure the animation has been paused or not. r=birtles
'finish_from_pause' supposes that finish() is called after pause pending state
is finished.  Whereas 'finish_from_pause_pending' supposes that finish() is
called during pause pending state.  We should check the state respectively.

MozReview-Commit-ID: DUq2ghK6h9I

--HG--
extra : rebase_source : 2d4ded71387e75efcff9bb184b8e51475bc8bc56
2017-12-11 06:46:46 +09:00
Hiroyuki Ikezoe e8357d3715 Bug 1424115 - Rewrite test_animation_observers_async.html with promise_test. r=boris
With this patch we still use a global MutationObserver and a single target
element and re-use them in all test cases.  Eventually each test should create
a target element and a MutationObserver to avoid explicit cleanup jobs (e.g.
clearing styles and flushing styles for the global target element), but it's
not in the scope of this bug.

MozReview-Commit-ID: IqEjMbTrpAK

--HG--
extra : rebase_source : 7463c21ce946f5c15f2b7bc4a71c90dba784385d
2017-12-08 12:03:30 +09:00
Hiroyuki Ikezoe dc512a2632 Bug 1424115 - Drop EventUtils.js from test_animation_observers_async.html. r=boris
It's no longer used.

MozReview-Commit-ID: 5f4lEP5wAqx

--HG--
extra : rebase_source : 81feae35ee4ee735e2bb3904f0166897c93880ec
2017-12-08 11:50:03 +09:00
Hiroyuki Ikezoe 9e8a926279 Bug 1424115 - Fix indentation in test_animation_observers_sync.html. r=boris
MozReview-Commit-ID: HsYi9ISOVli

--HG--
extra : rebase_source : 05c05478237c1c827f03b070ace8828a43a0474d
2017-12-08 11:50:03 +09:00
Hiroyuki Ikezoe 61db04fabc Bug 1424115 - Drop requestLongerTimeout in test_animation_observers_async.html. r=boris
Most of test cases in the test file has been moved so that the test no longer
takes over default time out (5 minutes).

MozReview-Commit-ID: 9rrr7WrkcFH

--HG--
extra : rebase_source : 44ca3c0e42a389d82185e55b257c1dceb6d407d4
2017-12-08 11:50:03 +09:00
Hiroyuki Ikezoe 49e012c030 Bug 1416693 - Make animation test cases that don't require asynchronous. r=boris
Below list is animation test cases remain in test_animation_observers_async.html

* single_animation : waiting for animationend event
* single_animation_cancelled_fill : waiting for animaitonend event
* tree_ordering : waiting for animationend event
* coalesce_change_cancel : testing a non-cancelling change to an animation
  followed immediately by a cancelling change sends only one removal
  notification, I am concerned that adding explicit style flush
  (e.g. getComputedstyle) might change the test purpose.
* play : redundant play() seems to be affected by asynchronous.
  I haven't dug into detail.
* finish_from_pause : waiting for Animation.ready to make sure pause pending
  state to finish.

MozReview-Commit-ID: HAelOTwSqgv

--HG--
extra : rebase_source : 819e8975028f62580dccd07fedc53d250b71f97a
2017-12-07 10:06:02 +09:00
Hiroyuki Ikezoe 70ec3f1b1b Bug 1416693 - Make transition test cases that don't require asynchronous. r=boris
Below list is transition test cases remain in test_animation_observers_async.html

* single_transition : waiting for transitionend event

MozReview-Commit-ID: 5ecgpJm1W6p

--HG--
extra : rebase_source : d5c77cf77521f62a693897230d73287deab8b6c7
2017-12-07 16:27:32 +09:00
Emilio Cobos Álvarez 13a91fa9f6 Bug 1417200: Make -moz-border-colors chrome only. r=xidorn
On a CLOSED TREE, since the servo patch managed to get in.

This also makes the border longhand no longer reset them.

MozReview-Commit-ID: KNais1e5FnE
2017-12-01 23:25:01 +01:00
Hiroyuki Ikezoe ba70245385 Bug 1421151 - Drop redundant calling start(). r=birtles
We have already start() call at the top of this test file, the start() there
is called after setting 'layout.css.devPixelsPerPx' pref, that should be only
one call for start().

MozReview-Commit-ID: A43vfwfLer3

--HG--
extra : rebase_source : 7cf3157bb781c135c726d252048fe52393ead428
2017-11-28 16:42:27 +09:00
Brian Birtles 06e53a1793 Bug 1412765 - Update more tests to reflect changes to Animation.playState's r=hiro
return value; r?hiro

MozReview-Commit-ID: KvZa7EyzAKj

--HG--
extra : rebase_source : b7721bc34f246c36a22eb4f9acc3fba854dcdec8
2017-11-24 10:53:58 +09:00
Hiroyuki Ikezoe bb3c45d880 Bug 1415399 - Explicitly flush styles to make sure style changes happen in the case where we are in the state just before requestAnimationFrame is handled. r=birtles
MozReview-Commit-ID: FqIoLcJ69tl

--HG--
extra : rebase_source : ab1a1433dadc7c3269df3ca7a8a7e809922ebcdb
2017-11-14 08:38:03 +09:00
Hiroyuki Ikezoe 4b43b78621 Bug 1415399 - Use arrow function in test_animation_observers_{async,sync}.html. r=birtles
MozReview-Commit-ID: 4gSsvjQWBfS

--HG--
extra : rebase_source : 8b3e7791a65adc33d966c4370c4776e430522429
2017-11-14 08:37:09 +09:00
Jan de Mooij 296194e65f Bug 1414340 part 1 - Remove non-standard array/generator comprehensions from browser code. r=mossop 2017-11-10 11:52:22 +01:00
Hiroyuki Ikezoe 98f28aa386 Bug 1415042 - Wait for two requestAnimationFrames to ensure that animations have been tried to send to the compositor in test_running_on_compositor.html. r=birtles
MozReview-Commit-ID: FhzRLiKiLC

--HG--
extra : rebase_source : 9dbd392bd796a2d9ef7b6a49b4e40f857ead5e1c
2017-11-07 14:50:15 +09:00
Hiroyuki Ikezoe 0e71085270 Bug 1415042 - Use arrow function in test_running_on_compositor.html. r=birtles
MozReview-Commit-ID: 2zAMkTVK9VE

--HG--
extra : rebase_source : 40b8c5247e45dd333e7eeb871aacd88720bb1bf8
2017-11-07 14:50:02 +09:00
Hiroyuki Ikezoe a9c7129658 Bug 1415042 - Wait for two requestAnimationFrames to ensure that animations have been tried to send to the compositor in test_animation_performance_warning.html. r=birtles
To do that, ideally we can wait for MozAfterPaint, but it's sometimes fired
before we do a paint process (bug 1341294), we should avoid using it until
that bug is fixed.
So, we wait for two requestAnimationFrames instead.  The callback for
requestAnimationFrame is called before styling process, so we need to wait for
one more frame there.  For now a Promise in waitForFrame is processed after
paint process, so these tests would have been working fine with waiting for a
single requestAnimationFrame.  But after bug 1193394, the Promise will be
processed right after requestAnimationFrame, thus these tests will fail with a
single requestAnimationFrame.

MozReview-Commit-ID: 4pbofZ3DUm3

--HG--
extra : rebase_source : 133d0a259f81142fb9781d697642e82a577abb6b
2017-11-07 14:49:59 +09:00
Hiroyuki Ikezoe 01732475f9 Bug 1415042 - Use arrow function in test_animation_performance_warning.html. r=birtles
MozReview-Commit-ID: JjrL5Tx6y5F

--HG--
extra : rebase_source : 5219f4f736f52956875b06db21ff1eb5fffb83da
2017-11-07 13:21:01 +09:00
Zibi Braniecki 4c3a3ac1fb Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
MozReview-Commit-ID: F0Ofe2lHHEo

--HG--
extra : rebase_source : 420c65111dc5066eb00ef86ddf375db533008bbf
2017-11-03 17:08:34 -07:00
Sebastian Hengst eebc5b65c0 Backed out changeset 0637dca8a971 (bug 1410736) for eslint failure at toolkit/components/extensions/test/xpcshell/test_ext_i18n_css.js:130: Unexpected var, use let or const instead. r=backout on a CLOSED TREE 2017-11-04 00:51:02 +01:00
Zibi Braniecki 5db1dc8a9d Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
MozReview-Commit-ID: CmXBFcKxOkX

--HG--
extra : rebase_source : deeeee81fd187aa9ca4f26f9f5c69633ff405e34
2017-11-02 14:11:41 -07:00
Hiroyuki Ikezoe dee2a02766 Bug 1379515 - Run test_restyles.html in content. r=birtles
MozReview-Commit-ID: 7PPYQYBIo5Y

--HG--
rename : dom/animation/test/chrome/test_restyles.html => dom/animation/test/mozilla/file_restyles.html
extra : rebase_source : 24990119842e92362e123b51519bfec773e0a392
2017-10-30 09:49:32 +09:00
Hiroyuki Ikezoe 886e45f39e Bug 1379515 - Make test cases that use synthesizeWheelAtPoint proper. r=birtles
We shouldn't call synthesizeWheelAtPoint() in an rAF callback and observe
animation restyle makers there since we might end up observing an animation
restyle maker which is brought by flushing throttled animation styles for
hit-testing caused by the wheel event.  Now we have sendWheelAndPaintNoFlush
which does not flush any styles before sending the wheel event, we use it.

MozReview-Commit-ID: 6WP2ExA7fAv

--HG--
extra : rebase_source : a2a5cea00fbe431dea8096b584a9f82c658158aa
2017-10-30 09:49:23 +09:00
Hiroyuki Ikezoe 1ec24b403d Bug 1379515 - Change a child element position to be able to move into view of the parent by mouse wheel. r=birtles
Before this patch the child element actually did not move into the view and
observed an unrelated restyle maker.  In the next patch we fix the observation
of the unrelated restyle maker.

MozReview-Commit-ID: 1DejqwF6hJg

--HG--
extra : rebase_source : ea6d6a48043f1b2a52ddedcbc41c321624a723d2
2017-10-30 09:43:04 +09:00
Hiroyuki Ikezoe 886e615302 Bug 1379515 - Unify test cases that checks animation are/were in scrolled out elements. r=birtles
It much makes more sense to check the animation in out-of-view is throttled
and unthrottled once it got visible in a single test.

MozReview-Commit-ID: AZY5Xc0cbDF

--HG--
extra : rebase_source : bcdf999ee10283853c7b0bda8f450a53990a0e1c
2017-10-30 09:42:56 +09:00