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

1100 Коммитов

Автор SHA1 Сообщение Дата
Xidorn Quan 444ba0fc97 Bug 1340033 - Remove dependency from StyleAnimationValue.h to ServoBindings.h. r=hiro
MozReview-Commit-ID: 79czvLmftmv

--HG--
extra : rebase_source : 57d7a55ed48a0e9475076fa930226b6ea99a4e22
2017-02-16 15:14:06 +11:00
Boris Chiou a6378fdab6 Bug 1338087 - Part 3: Remove asserts-if on crashtest 1244595-1.html. r=heycam
MozReview-Commit-ID: 7L2p7WvroSP

--HG--
extra : rebase_source : e6cd578d56921b34b5bd2bd38006443418cce69a
2017-02-13 13:55:29 +08:00
Boris Chiou 921bec7548 Bug 1338087 - Part 2: Drop the computation of StyleAnimationValue on stylo. r=hiro
MozReview-Commit-ID: 4oAzC6m2vie

--HG--
extra : rebase_source : 139674c8059a918b6850b74e4bdeb8a49b4a2571
2017-02-10 15:51:00 +08:00
Boris Chiou 62bf2f991d Bug 1338087 - Part 1: Don't apply paced spacing on stylo. r=hiro
To avoid using StyleAnimationValue on stylo, we should skip
ApplySpacing, which means We always fall back to distribute spacing on stylo.

MozReview-Commit-ID: 9DNwhOI8saf

--HG--
extra : rebase_source : c535139a8171bcdc874fef6bc1a12045957de9e1
2017-02-10 16:37:45 +08:00
Cameron McCormack f63cdecde2 Bug 1297899 - Part 6: Move RestyleManagerHandle functionality into RestyleManager. r=bholley
MozReview-Commit-ID: 7lsti0bGzNr

--HG--
extra : rebase_source : 13c64026190afe5de25f540adb6deea9f518149f
2017-02-13 11:21:33 +08:00
Xidorn Quan 95c1b23bd9 Bug 1339341- Downgrade several stylo errors to warnings. r=heycam
MozReview-Commit-ID: 2Sa8dS8uSo5

--HG--
extra : rebase_source : c6809309bbef5faf458b56018b964619ff386238
2017-02-14 18:26:10 +11:00
Mantaroh Yoshinaga b9fcaa1663 Bug 1302648 part 9 - Add test of setting target effect of CSS Animations. r=birtles
MozReview-Commit-ID: 6MVVFY4uJC4

--HG--
extra : rebase_source : 3b176090e54ef4cc51eaf4ea3f31815b03e9f1bc
2017-02-10 12:32:45 +09:00
Mantaroh Yoshinaga e43bd142f6 Bug 1302648 part 8 - Add animationcancel tests. r=birtles
MozReview-Commit-ID: 44nT8BBNgzT

--HG--
extra : rebase_source : d52d56c08e0cee6c29a4926429fbad227ae19c66
2017-02-10 12:32:45 +09:00
Mantaroh Yoshinaga 073bbe8e59 Bug 1302648 part 7 - More simple animation event dispatch tests. r=birtles
MozReview-Commit-ID: 1fJD75QSkxf

--HG--
extra : rebase_source : ac459b6a664fb97332f2a061602169744e4b057c
2017-02-10 12:32:45 +09:00
Mantaroh Yoshinaga fa7dee3362 Bug 1302648 part 4 - Call UpdateTiming() after removing the animation from the timeline. r=birtles
We will need to remove animation from timeline before calling Animation::UpdateTiming() in order to fire the cancel event.
In bug 1264125, we request one more tick after calling Animation::Cancel(), however we won't need to call this request if we apply this changeset.

MozReview-Commit-ID: h0dxUdtgkl

--HG--
extra : rebase_source : ac96209b28fdc781bf3787d348f2ae989e695640
2017-02-10 12:32:44 +09:00
Phil Ringnalda df4305e633 Merge m-c to autoland 2017-02-12 15:31:37 -08:00
Hiroyuki Ikezoe ca14d9287e Bug 1338769 - Don't move const reference into AnimValuesStyleRule. r=birtles
MozReview-Commit-ID: 8koosLn9VKn

--HG--
extra : rebase_source : 01147a281b6d823766c25470d02efe1aa89ce1f8
2017-02-12 08:30:22 +09:00
Hiroyuki Ikezoe 392ed0305b Bug 1331704 - Part 3: Drop all of unused stuff. r=birtles a=abillings
MozReview-Commit-ID: BWAC0iZLw6t
2017-02-11 19:11:45 +09:00
Hiroyuki Ikezoe 06cde8eda0 Bug 1331704 - Part 2: Resolve base styles during UpdateProprties. r=birtles a=abillings
EnsureBaseStyle() requires an already resolved nsStyleContext
and resolves the base style by ResolveStyleByRemovingAnimation().

MozReview-Commit-ID: BHqJiBJspQY
2017-02-11 19:11:45 +09:00
Hiroyuki Ikezoe 8ec82eeec6 Bug 1331704 - Part 1: Store base styles in KeyframeEffectReadOnly instead of EffectSet. r=birtles a=abillings
Now we dropped mNeedsBaseStyleSet bit set.

MozReview-Commit-ID: Gv2rU0jpyk1
2017-02-11 19:11:45 +09:00
Brian Birtles 492acb1b5c Bug 1338404 - Fix keyframe handling for single-valued lists r=hiro
MozReview-Commit-ID: 5MNSDm3Qr8b

--HG--
extra : rebase_source : 97f89e50d0e28fae206c29e6dee575493289e2eb
2017-02-10 15:21:15 +09:00
Carsten "Tomcat" Book 3ed98bee2a merge mozilla-inbound to mozilla-central a=merge 2017-02-10 13:49:56 +01:00
Boris Chiou 606e52ba0f Bug 1337313 - Part 2: Add AnimationValue::SerializeSpecifiedValue. r=hiro
Move the implementation of uncomputing to string into AnimationValue,
and add one more FFI for RawServoAnimationValue.

MozReview-Commit-ID: JFnXnGO3mlp

--HG--
extra : rebase_source : 83c0e084ef4202a5c98c668d68bfe9066196d735
2017-02-09 11:33:17 +08:00
Boris Chiou ac7c271b7f Bug 1337313 - Part 1: Use AnimationValue in CreatePropertyValue. r=hiro
Replace the argument type with AnimationValue.

MozReview-Commit-ID: IeydVOLKTB9

--HG--
extra : rebase_source : 9537e40c9ffa16919a08765daa5d12e020e5d17c
2017-02-08 16:15:18 +08:00
Hiroyuki Ikezoe a0e80666fe Bug 1333846 - Part 2: Evaluate scale values for additive or accumulative animations. r=birtles a=abillings
MozReview-Commit-ID: LSKJNH5OJbs
2017-02-09 11:28:47 +09:00
Hiroyuki Ikezoe 4047570520 Bug 1333846 - Part 1: Move ContainsAnimatedScale() codes into dom/animation/. r=birtles a=abillings
MozReview-Commit-ID: 6bWeTfCmjtd
2017-02-09 11:28:47 +09:00
Cameron McCormack 71d4bbc431 Bug 1334735 - Part 2: Add separate flag to track need to flush throttled animations. r=bz,birtles
MozReview-Commit-ID: 6Vi3laKcbmG
2017-02-10 10:42:28 +08:00
Cameron McCormack b2ee81223c Bug 1334735 - Part 1: Move need style/flush flags from document to pres shell. r=bz
MozReview-Commit-ID: 2Amf9yGRiJA
2017-02-10 10:42:27 +08:00
Boris Chiou 155c2acd50 Bug 1335942 - Part 2: Use mozilla::AnimationValue in AnimationPropertySegment. r=hiro,manishearth
MozReview-Commit-ID: L6U1A223jsa

--HG--
extra : rebase_source : 26d8ec4386443d6526fed2f4926c6e4519e6bbd0
2017-02-04 13:57:08 +08:00
Boris Chiou 13d39b9757 Bug 1335942 - Part 1: Introduce mozilla::AnimationValue. r=hiro,manishearth
Currently, we have StyleAnimationValue for Gecko and
RawServoAnimationValue for Servo, and use this struct to wrap them to
avoid the duplicated code.

MozReview-Commit-ID: ATDBSCOX2C5

--HG--
extra : rebase_source : 85991ef5e23a445ae6302264508d1c06a46c0e29
2017-02-08 11:00:36 +08:00
Brian Birtles 5ba8812302 Bug 1332206 - Don't clamp steps timing functions outside [0, 1] range; r=hiro
MozReview-Commit-ID: AiSdxQvU2mj

--HG--
extra : rebase_source : 77fb266b62a3a93ac134c1d65d1107c0bb8a110d
2017-02-08 09:25:31 +09:00
Sebastian Hengst 0264cdf6be Bug 1336311 - Change code comments with http://hg.mozilla.org to https://. r=gps
For components also referencing it in code, see the blockers of bug 1336311.

MozReview-Commit-ID: 4tUZ24HKBWy

--HG--
extra : rebase_source : ec16149f525b9b7eaca7f96f1369929d21497121
2017-02-07 17:52:56 +01:00
Mantaroh Yoshinaga 1ba8149d5d Bug 1336899 - Should not fire the transitioncancel after ending CSS Transition. r=birtles
MozReview-Commit-ID: IrqNNjVg0xg

--HG--
extra : rebase_source : 769e4646375d41b5621ee71c8f0ce5eb44bae8d1
2017-02-06 16:21:01 +09:00
Hiroyuki Ikezoe af7c9e29b7 Bug 1326306 - Skip test_restyles.html on Android x86. r=gbrown
MozReview-Commit-ID: AHp28FajVoT

--HG--
extra : rebase_source : 045de247f860c249f6d9f982fa507d6070460bf5
2017-02-02 12:55:59 +09:00
Boris Chiou 015e8b8198 Bug 1324554 - Part 3: More tests for test_animation_properties.html. r=hiro
MozReview-Commit-ID: 6MkkP8yNGvg

--HG--
extra : rebase_source : 091a1d72747b445a80c255bcc09e33fe23760446
2017-02-02 11:05:35 +08:00
Boris Chiou 3a9474ac19 Bug 1324554 - Part 2: Add a crash test. r=hiro
MozReview-Commit-ID: GCeqmQm9kIb

--HG--
extra : rebase_source : ee3011cbce2594e0e0ada38b6744c3f354a1aa57
2017-01-31 15:39:28 +08:00
Boris Chiou eb057d903d Bug 1324554 - Part 1: Filter out zero-length segments earlier. r=hiro
We need to filter zero-length segments (i.e. entries with the same
offsets) before handle missing final keyframes.

MozReview-Commit-ID: DGJPrNRXlmd

--HG--
extra : rebase_source : e5a56fb9b8d41fedf2458aee8ae2d8bd806451b6
2017-01-31 23:30:19 +08:00
Hiroyuki Ikezoe f6710ec790 Bug 1333539 - Part 2: Send animations with null-timeline to the compositor if necessary. r=birtles
MozReview-Commit-ID: KJf7B8AuAzo

--HG--
extra : rebase_source : ac56bfe22d19dfb27640e76c2a520958bc93207d
2017-02-02 15:11:29 +09:00
Hiroyuki Ikezoe e07498e3e8 Bug 1333539 - Part 1: Do not try to send animations without timeline. r=birtles
1333539-2.html is the test case that crashes without |!aAnimation->GetTimeline()|
check in AddAnimationForProperty().

MozReview-Commit-ID: 8UxYL8o63E1

--HG--
extra : rebase_source : af3247df257bc79e507113e2843854f478675a5b
2017-02-02 15:11:15 +09:00
Hiroyuki Ikezoe 97a3868830 Bug 1334982 - Convert animation restyle hints only if we are not in process of restyling. r=heycam
MozReview-Commit-ID: 4pWeWhGaTJv
2017-01-31 16:37:39 +09:00
Carsten "Tomcat" Book 86d6d898a4 Merge mozilla-central to mozilla-inbound 2017-01-30 16:02:19 +01:00
Carsten "Tomcat" Book 29cd257175 merge mozilla-inbound to mozilla-central a=merge 2017-01-30 15:59:14 +01:00
Cameron McCormack 9c4ea5685f Bug 1334768 - stylo: Back out 800030115d2e and 404506488cfb for being completely wrong due to bug 1334938.
MozReview-Commit-ID: 8CGTqmtlguT
2017-01-30 16:49:54 +08:00
Florian Quèze bdc1ffa608 Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
Joel Maher 3d044d99d0 Bug 1334541 - add BUG_COMPONENT to dom/animation/* files. r=hiro
MozReview-Commit-ID: Bnyj9mWOYms
2017-01-29 06:51:47 -05:00
Cameron McCormack 7805d4716e Bug 1334768 - stylo: Test expectation adjustments for 2017-01-29 merge.
MozReview-Commit-ID: FFmvs6SHIwW
2017-01-29 15:31:56 +08:00
Hiroyuki Ikezoe 9ce5c619b0 Bug 1328787 - Part 1: Factor out Keyframe and PropertyValuePair into Keyframe.h. r=heycam
KeyframeEffectReadOnly.h has lots of unnecesarry stuff for stylo for now, so
is split stuff which needs for stylo into Keyframe.h.
2017-01-29 12:58:23 +09:00
Boris Chiou 56b53b069d Bug 1324691 - Part 4: Remove conditions on some crashtests. r=heycam
We should pass these animation tests now:
* 1216842-3.html
* 1216842-4.html
* 1278485-1.html
* 1290535-1.html
* layout/style/crashtest/1290994-1.html
* layout/style/crashtest/1290994-2.html
* layout/style/crashtest/1290994-3.html

And these tests still need to be verified by Bug 1334036.
* 1216842-1.html
* 1216842-2.html
* 1216842-5.html
* 1216842-6.html

MozReview-Commit-ID: 1qLcS9ovsYp

--HG--
extra : rebase_source : 7b013fd62a79352d429e2bf28246a2587a327db5
2017-01-27 14:38:55 +08:00
Boris Chiou dd957f850b Bug 1324691 - Part 1: Use warnings instead of assertions for unsupported OMTA. r=heycam
Make FindAnimationsForCompositor return false because we don't support
OMTA, and use warnings, instead of assertions, because animations sill
work.

We call RequestRestyle(Layer) not only for OMTA but also for
non-compositor-driven animations, so just skip the animation generation part,
and use warnings, instead of assertions.

MozReview-Commit-ID: LNw5aC8jOvh

--HG--
extra : rebase_source : e573c2ec8ef4b32796764e869dc3e1fd58cfa6cb
2017-01-26 15:27:44 +08:00
Mantaroh Yoshinaga 3ad37c274f Bug 1308099 part 1 - Rename AnimationPhase::Null to AnimationPhase::Idle. r=hiro
In Web Animations specification, if the animation effect is in none of the any phase, it define as 'Idle' phase. [1]
But, in the gecko, it defined as 'Null' phase.

So we will need to use 'Idle' phase for consistency.

[1] https://w3c.github.io/web-animations/#idle-phase

MozReview-Commit-ID: FlPpYOqdM4X

--HG--
extra : rebase_source : ec294c84f9c77a42d6128e3d43380b80fc130513
2017-01-25 15:43:57 +09:00
Boris Chiou a7cc28900f Bug 1317209 - Part 7: Skip some crash tests due to unimplemented features. r=emilio,heycam
MozReview-Commit-ID: ClB3wro1Q7D

--HG--
extra : rebase_source : 56ce49409109b763695ec15369ab3e17b497afc9
2017-01-25 11:18:55 +08:00
Boris Chiou d45e2346f6 Bug 1317209 - Part 6: Support transition cascade level. r=heycam
Implement the mapping between EffectCompositor::CascadeLevel in Gecko and
EffectCompositor_CascadeLevel in Servo, so we can pass it as a parameter into
Gecko_GetAnimationRule.

MozReview-Commit-ID: GRedooyGE8c

--HG--
extra : rebase_source : c18d54dabb093242c66d46be8ca03424a2c6ca78
2017-01-24 15:33:10 +08:00
Boris Chiou f338c9e47d Bug 1317209 - Part 5: Trigger composeStyle if there is an animation. r=heycam
1. Add one new FFI, Gecko_GetAnimationRule, which will try
   to update the animation rule and retrieve a ServoAnimationRule
   from EffectSet.
2. Add GetServoAnimationRule, which calls Animation::ComposeStyle and updates
   mElementsToRestyle.
3. There is no eRestyle_{CSSAnimations|CSSTransitions}, so we use
   eRestyle_Self and eRestyle_Subtree for stylo.

MozReview-Commit-ID: 9RpJurPSFMk

--HG--
extra : rebase_source : 6f1246b73a920aee86faeeaccc42b7f51ed2a6c8
2017-01-24 15:27:56 +08:00
Boris Chiou e408a629aa Bug 1317209 - Part 4: Don't ref-count nsDOMNavigationTiming in DocumentTimeline. r=heycam
nsDOMNavigationTiming is not thread-safe ref-counted, so it's better not to
put it into RefPtr because we might call those functions from servo side.
Actually, nsDOMNavigationTiming is held by the document, and the document
must still live in these functions.

MozReview-Commit-ID: AyZ4k749btm

--HG--
extra : rebase_source : 06c0f3654a32483594b80042ec854d3c09a21d9c
2017-01-13 17:34:38 +08:00
Boris Chiou 6ed12ee8b7 Bug 1317209 - Part 3: Add constness to GetEffectSet. r=hiro
We need to call GetEffectSet() from Servo code, which passes an
immutable reference to GeckoElement, so it's better to make dom::Element
const.

MozReview-Commit-ID: GqQEB7BwkJA

--HG--
extra : rebase_source : 4b025f56949d8327781be26d1607e6d9f4668f2f
2017-01-13 17:06:35 +08:00