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

1391 Коммитов

Автор SHA1 Сообщение Дата
Brian Birtles db9b84ee6c Bug 1407898 - Check if presContext is null before dereferencing in GetComputedKeyframeValues; r=hiro
There are no reliable steps to make this happen but it appears to have happened
at least twice during fuzzing. As a result, it doesn't matter too much what the
behavior here is as long as we don't crash.

MozReview-Commit-ID: 4gdiBL2wngU

--HG--
extra : rebase_source : 54afce721f8b59c2ad038e0c2222f64e71a9b917
2017-10-25 15:34:50 +09:00
Matt Woodrow ext:(%2C%20Miko%20Mynttinen%20%3Cmikokm%40gmail.com%3E%2C%20Timothy%20Nikkel%20%3Ctnikkel%40gmail.com%3E) 3fa03bb34e Bug 1404181 - Part 22: Make sure we mark frames as modified any time they change position or style data and make sure we don't accidentally mark the root as being modified when we don't need to. r=mstange
MozReview-Commit-ID: J5ov5cwvvrE

--HG--
extra : rebase_source : 4eadb82e5e0b3264cc7d6aeef2693ce8aea69b43
2017-09-29 10:51:49 +13:00
Hiroyuki Ikezoe be0c3c9792 Bug 1383239 - Don't throttle non-visible changes involved animations on out-of-view elements when they are newly in-effect. r=birtles
MozReview-Commit-ID: G9OL3pPZarr

--HG--
extra : rebase_source : 649211f4054eb3c62e993f0aafbb21a6ddd1a17a
2017-10-20 18:23:44 +09:00
Brian Birtles c38308c79b Bug 1398038 - Implement extended property-indexed keyframe syntax; r=bz,hiro
This implements the changes specified in these three spec changesets:

  8efd180bd9
  f43ecdfbe5
  a4f1ad1a60

MozReview-Commit-ID: KFhgZ5ip6BA

--HG--
extra : rebase_source : aa18f8e3fbcd5d96194ff9a5239a3c415622dc2f
2017-10-18 16:12:21 +09:00
Boris Chiou 22d25c4d73 Bug 1303235 - Part 3: Enable test_restyle.html and remove the early return in CanIgnoreIfNotVisible. r=hiro
MozReview-Commit-ID: LMKSVW2sh5N

--HG--
extra : rebase_source : 96d48acefeedaa5e9510ea51567b87439bb8f48e
2017-10-11 14:39:37 +08:00
Boris Chiou 80e5237e58 Bug 1303235 - Part 2: Templatize CalculateCumulativeChangeHint. r=hiro
MozReview-Commit-ID: JHSn7FoRPpW

--HG--
extra : rebase_source : f79dbf3b65bc20c13976e348cb9d192bd8b4bb4b
2017-10-12 16:12:54 +08:00
Brian Birtles fd4770f818 Bug 1406381 - Update the simple iteration progress calculation to match recent changes to the Web Animations specification; r=hiro
This implements the following change to the Web Animations specification:

  19b6c33cee

The background to that change is described in the corresponding spec issue:

  https://github.com/w3c/web-animations/issues/201

MozReview-Commit-ID: GGA64LG5vT

--HG--
extra : rebase_source : 92c2a60a250071926c2c998dbfadc5979b89cc0c
2017-10-13 12:31:21 +09:00
Brian Birtles 6334b49355 Bug 1282691 - Drop the assertion about an animation that we're making play-pending not already being pause-pending; r=boris
We could handle this case by dropping the animation from the pause-pending table
but that's an extra hashtable lookup that so far seems to be unnecessary.

I have verified that the crashtest added in this patch fails without the code
changes included here.

MozReview-Commit-ID: Ed6u7WRLD2t

--HG--
extra : rebase_source : 8b175ef2d06b4394f3c51f740a1d305aeea9ed04
2017-10-13 14:37:51 +09:00
Hiroyuki Ikezoe 2b54925c5c Bug 1407463 - Drop unused pseudo atom argument from GetBaseContextForElement. r=heycam
MozReview-Commit-ID: JJ2Jh1I6y4h

--HG--
extra : rebase_source : 99c458dfffee88103e5f2b01f9ff9ae0256b8c62
2017-10-11 10:00:37 +09:00
Nicholas Nethercote d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Hiroyuki Ikezoe 9d610320fe Bug 1406284 - Remove unused parent context argument. r=heycam
MozReview-Commit-ID: A1yIOZ1bWjY

--HG--
extra : rebase_source : a4daa3466382b64f50256d1c081f886b98f4f80d
2017-10-06 13:51:02 +09:00
Brian Birtles 3afa921d85 Bug 1291413 - Fix assertion when resuming an Animation with both a start time and hold time; r=hiro
When we set the playback rate to zero on a play-pending animation that is
resuming from an aborted pause we can arrive in a state where both the start
time and hold time are resolved. However, we previously added an assertion that
only one of these is ever set at a time.

Part of the assertion is warranted since that method contains the following
code:

  if (mStartTime.IsNull()) {
    mStartTime = StartTimeFromReadyTime(aReadyTime);
    if (mPlaybackRate != 0) {
      mHoldTime.SetNull();
    }
  }

Here StartTimeFromReadyTime requires a non-null hold time. So either mStartTime
or mHoldTime needs to be non-null. The requirement that only one or the other be
non-null, however, is not in the spec and not necessary (as the test cases in
this bug show).

What this assertion does bring to light, however, is that in the case where we
have *both* the start time and the hold time, we need to consider whether to use
the start time as-is, or calculate it from the hold time.

I have filed the following spec issue for this:

  https://github.com/w3c/web-animations/issues/200



MozReview-Commit-ID: CTCT7Up1E5n

--HG--
extra : rebase_source : 95233f7cd2bc3c4bcc56615d8387fe54852986c1
2017-10-05 10:50:38 +09:00
Brian Birtles 02f8ed3fe4 Bug 1404774 - Defer throwing errors from parsing keyframe easing until after reading off all properties; r=hiro
As required by the recent spec change:

  d696468777

MozReview-Commit-ID: Ev6kUk1uLAY

--HG--
extra : rebase_source : 70f8ca3143a8b3bb4e03016b9989925d5a328049
2017-10-02 12:35:47 +09:00
Hiroyuki Ikezoe 653e15ba32 Bug 1403433 - Add another variant of SchedulePaint that does not call InvalidateRenderingObservers for PendingAnimationTracker. r=birtles
nsFrame::SchedulePaint() invokes InvalidateRenderingObservers, and
InvalidateRenderingObservers ends up posting change hints during we are
processing sequential tasks for animations, but we don't allow posting any
change hints while we are in the middle of restyling process.

Though the change hints posted by InvalidateRenderingObservers are not harmful
in this case since the change hints will be processed in a second post
traversal without problems.  That's said, InvalidateRenderingObservers stuff
should be processed in display list based invalidation anyway (bug 1284053).

MozReview-Commit-ID: GKVRZ98lvEN
2017-09-29 19:42:13 +09:00
Hiroyuki Ikezoe 9e9a01fd49 Bug 1402219 - Compute css variables with custom properties in keyframes for getKeyframes(). r=birtles
MozReview-Commit-ID: 7CMnWbzzemY

--HG--
extra : rebase_source : 977a2d4af632beef45906cb0eb1077fc48ccd4ed
2017-09-27 16:49:21 +09:00
Hiroyuki Ikezoe 56e08ccc96 Bug 1402219 - Check the length of returned keyframes of getKeyframes(). r=birtles
Otherwise, if getKeyframes() returns an empty array, we don't check each keyframes
at all.

MozReview-Commit-ID: LSBIgetZq2G

--HG--
extra : rebase_source : cc24d093a1e0c9223ac696e44d297602016189a2
2017-09-27 12:46:03 +09:00
Wei-Cheng Pan f3f406f76b Bug 1363805 - Part 3: Do lazy flushing if possible. r=heycam
Skips flushing current document if the target of getComputedDOMStyle cannot be
affected by any pending restyles.

MozReview-Commit-ID: C87HDIDvOth

--HG--
extra : rebase_source : 064880493f9aac2599689cdd0749200bb579c60b
2017-05-23 12:02:11 +08:00
Hiroyuki Ikezoe 933ef2c9ba Bug 1401809 - Use Atom::from(nsIAtom) to increment reference count in case of dynamic atom for will-change. r=xidorn
If we don't increment the reference count for the Atom in servo side, it's
possible to try to release the Atom in servo side even if we have already
released in gecko side.  When it happens, nsIAtom::mKind is no longer reliable.

MozReview-Commit-ID: GrxbcYxowRB

--HG--
extra : rebase_source : 94e054e3357b31e398e8e5e81522dab3019c561c
2017-09-21 15:50:37 +09:00
Brian Birtles 3b5522acdc Bug 1314537 - Drop comment reference to SharedKeyframeList; r=comment-only, DONTBUILD
This has been dropped from the spec in:

  17b14a7269

--HG--
extra : rebase_source : f0c824c5bd5bec7aefbc742830520a3a210468ef
2017-09-20 11:56:00 +09:00
Hiroyuki Ikezoe 121662e3ab Bug 1400022 - Crash test. r=hiro
MozReview-Commit-ID: 6voy0F9GwbC

--HG--
extra : rebase_source : 3a93c8ae1b88eab6cbfd4bc67f3e450080da1742
2017-09-19 13:58:31 +09:00
Hiroyuki Ikezoe e077bd95a1 Bug 1400022 - Backed out changeset 610fbd30a6a3 (bug 1397057). r=mattwoodrow
The SchedulePaint() ends up calling
nsSVGEffects::InvalidateDirectRenderingObservers, it doesn't need for retained
display list, and causes harmful restyle events for stylo.

We will call ScheulePaint without involing InvalidateDirectRenderingObservers
later in another bug.

MozReview-Commit-ID: 10V9JLHZmCs

--HG--
extra : rebase_source : 664718eb91e973a4619847e4bfa94327e410f364
2017-09-19 11:14:48 +09:00
Boris Chiou 7d37ae2816 Bug 1388601 - Part 2: Add tests of distance for Filter lists. r=hiro
MozReview-Commit-ID: 1asVvBnV93r

--HG--
extra : rebase_source : 72fe8c006970f8b002b63df982a6f54f773fc6fb
2017-09-14 15:21:47 +08:00
Boris Chiou f5d25a9abd Bug 1388601 - Part 1: Add tests of distance for Basic Shape. r=hiro
MozReview-Commit-ID: 8m5km7hVNvR

--HG--
extra : rebase_source : 513747aadf699fdd827d241d2caef072b5f6742b
2017-09-14 11:25:16 +08:00
Hiroyuki Ikezoe 37c05393f5 Bug 1398661 - Convert target element to the parent if the target element is pseudo in EffectCompositor::PreTraverseInSubtree/PreTraverse. r=emilio
MozReview-Commit-ID: Dl2gvkLpo4k

--HG--
extra : rebase_source : a741b8d1e10e111ab8255e50a56ad11041fe39f9
2017-09-14 06:22:40 +09:00
Boris Chiou 19ef8ca18f Bug 1392161 - Part 2: Update test expectation. r=xidorn
MozReview-Commit-ID: lURbKrREBp

--HG--
extra : rebase_source : 401a346acc551218d082ce47db4c89e984cb3f7f
2017-09-01 15:33:32 +08:00
Matt Woodrow a33c79d3b5 Bug 1397057 - Invalidate frames whenever we toggle an animation on the corresponding Element. r=birtles
MozReview-Commit-ID: GPGaRU9HxY6

--HG--
extra : rebase_source : 9029c46b539acec5206d8e32fad9fbf36e7ee51c
2017-09-12 14:13:10 -04:00
Hiroyuki Ikezoe c30d8acb21 Bug 1334582 - Check whether overall progress exceeds UINT64_MAX. r=boris
The overall progress is factored in iteration start, so even if
TimingParams.mIterations is less than UINT64_MAX, it will exceed UINT64_MAX.

MozReview-Commit-ID: CEOYAGsCoIE

--HG--
extra : rebase_source : 54ed450ebd0218ee2cac9f27125601c6575ee1a5
2017-09-12 08:42:54 +09:00
Hiroyuki Ikezoe b46966f3e8 Bug 1334582 - Use UINT64_MAX instead of IsInfinite() for checking whether TimingParans.mIterations is infinite or not. r=boris
Because our ComputedTiming.mCurrentIteration is uint64_t.

MozReview-Commit-ID: FjbhEvTUMr4

--HG--
extra : rebase_source : d8ba72c914aac6661f0a5a21885505f94844ce38
2017-09-12 08:42:45 +09:00
Hiroyuki Ikezoe eb4460d339 Bug 1397127 - Rewrite a test with async/await. r=birtles
MozReview-Commit-ID: Jdh4G022Gzd

--HG--
extra : rebase_source : d7359d344277ba8109c813a07fbe29b640789a21
2017-09-06 13:51:18 +09:00
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
Emilio Cobos Álvarez bf24bd8bc9 Bug 1395351: Use the style flattened tree in EffectCompositor::PreTraverseInSubtree. r=bholley
MozReview-Commit-ID: ATVxx8EXJWY

--HG--
extra : rebase_source : 8652e3f24335e5850ea7abae41e57a2397966d57
2017-09-01 19:28:01 +02:00
J. Ryan Stinnett 37f8066886 Bug 1395762 - Update Stylo check in file_restyling_xhr_doc.html. r=birtles
Automation also uses env vars to change the Stylo mode, so reading the pref is
not enough.  Change the test to `isStyledByServo` which covers all cases.

MozReview-Commit-ID: KLh42b4roF4

--HG--
extra : rebase_source : f77e78694d00489d4e5c7d7f4eaffca0610f128a
2017-08-31 18:57:25 -05:00
Boris Chiou 5a4b83f24b Bug 1393605 - Fix gecko assertion and add one crashtest. r=birtles
MozReview-Commit-ID: 44QIZ8SipWX

--HG--
extra : rebase_source : 764a560a322b9945365929a7bba6eac77f47b554
2017-08-31 11:11:09 +08:00
Boris Chiou f2076b6d4a Bug 1390039 - Add tests for mismatched transform lists and some other corner cases. r=birtles
MozReview-Commit-ID: ESchrGe6h9N

--HG--
extra : rebase_source : 099f3b882e7851519a998c51dde4ef9fdd44a998
2017-08-21 16:36:17 +08:00
Andrew McCreight 78807d8776 Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Mantaroh Yoshinaga c042d7aeea Bug 1366603 - Wait for rAF before waiting the MozAfterPaint in test_deferred_start.html. r=hiro
This test called waitForPaints() after creating an animation, but waitForPaints()
didn't wait for a MozAfterPaint event actually since
DOMWindowUtils.IsMozAfterPaintPending which is checked a MozAfterPaint event has
been queued return false[1]. (i.e. This test didn't wait for a MozAfterPaint)

This is related to bug 1341294. If gecko can receive a MozAfterPaint
corresponded to own paint, waitForPaint() does not need to check for
DOMWindowUtils.IsMozAfterPaintPending.

This patch is a workaround until bug 1341294 is resolved.

[1] http://searchfox.org/mozilla-central/rev/5696c3e525fc8222674eed6a562f5fcbe804c4c7/testing/mochitest/tests/SimpleTest/paint_listener.js#60

MozReview-Commit-ID: 6Rnv8MBP6Se

--HG--
extra : rebase_source : 052f62b01df819961040f6652954e1068f86fc47
2017-08-28 08:01:31 +09:00
Hiroyuki Ikezoe 18bae8b2e9 Bug 1394247 - Enable test_keyframeeffect-getkeyframes.html on stylo. r=birtles
MozReview-Commit-ID: A1Dth4dl87u

--HG--
extra : rebase_source : 6ca648a86d4ce1e159939b6f39bb632e01b0eca5
2017-08-28 05:56:25 +09:00
Tim Huang 5d6e73cb8d Bug 1382545 - Part 1: Rounding the time of Animation API to 100ms when 'privacy.resistFingerprinting'is true. r=arthuredelstein,birtles
Adopt from Tor #16337.

This patch makes Animation API to report a rounded time when 'privacy.resistFingerprinting'
is true. The Animation API uses AnimationUtils::TimeDurationToDouble() to convert
its time duration into a double value and reports it when someone tries to query
time through Animation API. So, we use nsRFPService::ReduceTimePrecisionAsMSecs()
inside this method to round the time in the scope of the millisecond.

MozReview-Commit-ID: 8o01G6AlAu9

--HG--
extra : rebase_source : e2d52f04c1d63accb786f6cf9b1a102607eed517
2017-08-17 22:37:29 +08:00
Eric Rahm a33f11e0f5 Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.

--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
Brian Birtles ac44c390db Bug 1385139 - Expand var() references in keyframes from CSS animations when serializing; r=hiro
This is a temporary step until we implement bug 1391537. It is needed to
maintain consistent behavior with Gecko and provide sensible output,
particularly in the case where we have longhands whose values are drawn from
unparsed shorthands.

MozReview-Commit-ID: 9aD2tsLagBp

--HG--
extra : rebase_source : cdabb26be17b96a574ea8b2e8093e11abb1af430
2017-08-21 12:35:35 +09:00
Boris Chiou 92c6add172 Bug 1389429 - Part 1: Add a test for rotate3d with the non-nomalizable direction vector. r=birtles
MozReview-Commit-ID: 70ZMe0QJbG5

--HG--
extra : rebase_source : f2e4a60cb7e8162ab50d990ccfe295b160bd3393
2017-08-16 11:19:38 +08:00
Hiroyuki Ikezoe 178b49d49e Bug 1390046 - Enable test_transform_limits.html on stylo. r=jdm
MozReview-Commit-ID: C5IJi3q6sLa
2017-08-19 11:15:50 +09:00
Emilio Cobos Álvarez aadc647248 Bug 1341102 - Update test_animation_properties.html after servo/servo#18131. r=bholley
calc() serialization in stylo changed to align to the spec more closely (modulo percentage order).

See the linked issue.

MozReview-Commit-ID: GyzZvdumMSe
2017-08-18 12:33:21 -04:00
Boris Chiou 7c301ac6aa Bug 1362896 - Part 2: Add a test for computation of distance of transform. r=birtles
MozReview-Commit-ID: 4WgZtyNlU4
2017-08-18 22:18:24 +08:00
Daisuke Akatsuka ee774b8c7a Bug 1390046: Fix test fail. r=hiro
In Servo, the max value for 'translate' is different from normal float since
is using Au ( AppUnit ). The value which we introduced as MAX_AU_PX
( 1.78957e+7 ) in this test is calculated by following mechanis.

1. Like this time, if the value is larger than max float, stored into specified
   value as infinity by parsing.
2. Then, when converts to the computed value Au from the specified value
   (infinity), ABSOLUTE_LENGTH_MAX (1 << 30) = 1073741824 stores into the Au.
   [1]
3. Finally, when get the PX value, returns the value which devided by
   AU_PER_PX ( 60 ). This value is 1.78957e+7.

[1] to_au_round() method
    https://searchfox.org/mozilla-central/source/servo/components/style/values/specified/length.rs#249

MozReview-Commit-ID: BVfDhOKXaWw

--HG--
extra : rebase_source : e55be1f42d9198c35bb8f29882ff19ec9de8f2fa
2017-08-18 14:12:54 +09:00
Hiroyuki Ikezoe 5c2f4171c6 Bug 1387951 - Enable test_discrete-animations.html on stylo. r=daisuke
MozReview-Commit-ID: HSUA9yMKC7b

--HG--
extra : rebase_source : 5e004fb78b301b680c6872463cafd07dc600924f
2017-08-15 06:57:40 +09:00
Daisuke Akatsuka 21fe68ef86 Bug 1389439 - Part 2: Enable test_underlying-discrete-value.html on stylo. r=hiro
MozReview-Commit-ID: 8zqUHnoZvee

--HG--
extra : rebase_source : b0c372cc5badb5b2d0661a478c6bc2905cb481d2
2017-08-15 12:38:45 +09:00
Daisuke Akatsuka 0b08d2f34b Bug 1389439 - Part 1: Use computed values as all expected values. r=hiro
The serialization of the value in getKeyframes() on both Gecko and Servo is
different, especially 'initial', 'inherit' and 'unset' on discrete animation.
Gecko returns those value as is, but Servo returns computed value.
We are understanding computed value (Servo) is right, so we change expected
values for them. Also, we skip them if this test is running on Gecko.

MozReview-Commit-ID: 4GFpCpec0eP

--HG--
extra : rebase_source : 8bb9fc670fb7ffd56935cdfb4f038be334782de7
2017-08-15 12:38:41 +09:00
Daisuke Akatsuka d6d4c04b81 Bug 1382138 - Part 2: Add -moz-appearance property to moz prefixed properties test. r=hiro
Since we made -moz-appearance animatable, append to the moz prefixed properties
test.

MozReview-Commit-ID: 9tdouU1umEB

--HG--
extra : rebase_source : 79e9639360461452249ce54ff538294f25b6cd4f
2017-08-14 16:27:05 +09:00
Hiroyuki Ikezoe fb03af5d7d Bug 1388031 - Process normal traversal for throttled animation flush as well. r=bholley
MozReview-Commit-ID: BirD8BDMifp
2017-08-11 20:34:06 -07:00