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

23 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Boris Chiou 04b273259e Bug 1496619 - part 6: Generate StyleTimingFunction and drop ns_timing_function.rs r=emilio,birtles
First, we generate StyleComputedTimingFunction by cbindgen from Rust, and use
it in nsTimingFunction, so we could copy it directly without handling
the different memory layout. However, we have to rewrite the
nsTimingFunction and mozilla::ComputedTimingFunction for this.

Second, the rust-bindgen seems cannot generate the correct generic members
from complex C++ templates, especially for the nested template struct,
(https://github.com/rust-lang-nursery/rust-bindgen/issues/1429)
So we have to hide StyleTimingFunction to avoid the compilation errors.

Depends on D9312

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

--HG--
extra : moz-landing-system : lando
2018-10-26 18:03:35 +00:00
Boris Chiou 0a23d58b21 Bug 1496619 - Part 2: Rename css-timing to css-easing r=birtles
Rename css-timing to css-easing according to the spec update.

Depends on D9309

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

--HG--
rename : testing/web-platform/meta/css/css-timing/__dir__.ini => testing/web-platform/meta/css/css-easing/__dir__.ini
rename : testing/web-platform/tests/css/css-timing/META.yml => testing/web-platform/tests/css/css-easing/META.yml
rename : testing/web-platform/tests/css/css-timing/cubic-bezier-timing-functions-output.html => testing/web-platform/tests/css/css-easing/cubic-bezier-timing-functions-output.html
rename : testing/web-platform/tests/css/css-timing/step-timing-functions-output.html => testing/web-platform/tests/css/css-easing/step-timing-functions-output.html
rename : testing/web-platform/tests/css/css-timing/testcommon.js => testing/web-platform/tests/css/css-easing/testcommon.js
extra : moz-landing-system : lando
2018-10-26 18:03:27 +00:00
Boris Chiou adff31eff9 Bug 1496619 - Part 1: Drop frames() timing function r=birtles
frames() timing function was removed from the spec, so we drop it.
Besides, some devtool tests are removed because they use frame(). I will
add them back by using new step function later.

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

--HG--
extra : moz-landing-system : lando
2018-10-26 18:03:24 +00:00
Andi-Bogdan Postelnicu 7f7f0a2300 Bug 1453795 - Dom/Animation - Initialize member fields in classes/ structures. r=bbirtles 2018-06-13 23:24:56 +03:00
Sebastian Hengst 0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Daniel Holbert 408bfa9bf0 Bug 1444481 part 1: Add some needed #includes to ComputedTimingFunction.h and FrameMetrics.h. r=xidorn
(This is a helper patch -- I'm splitting this into its own patch since it's
changing files in other directories, and also so that the main patches here
can be a bit more direct.)

Without this change, the other patches in this series would cause compile
failures in the headers that I'm fixing up here (because the other patches will
be removing #includes from some headers that these files were inadvertently
depending on).

As of this patch, ComputedTimingFunction.h will now be including:
 - nsDebug.h to provide NS_ASSERTION
 - nsStringFwd.h to provide a forward-declaration for "nsAString&"
 - Assertions.h to provide MOZ_ASSERT
 - Maybe.h to provide Maybe<ComputedTimingFunction>
(I think it's been leaning on nsTimingFunction.h's include of nsString.h to
indirectly provide these.)

FrameMetrics.h will now be including:
 - PLDHashTable.h to provide PLDHashNumber
(I think it's been leaning on nsStyleCoord.h/nsStyleConsts.h to indirectly
provide this.)

MozReview-Commit-ID: AoFoEe9GisK

--HG--
extra : rebase_source : 63c69343acaf42511ebdeb0238f4385a0c6345a5
2018-03-09 11:52:02 -08:00
Hiroyuki Ikezoe be2fe6bf8c Bug 1437272 - Split nsTimingFunction into an independent header file. r=birtles
So that we don't need to include nsStyleStruct.h in gfx any more.

MozReview-Commit-ID: 6nOaAbssLCz

--HG--
extra : rebase_source : 9c195c90277a4584dc14a6949e9eea53bcd8487c
2018-03-08 18:22:45 +09:00
Brian Birtles 0fec9ac501 Bug 1425548 - Update references to Web Animations spec in dom/animation; r=hiro
MozReview-Commit-ID: 1f2Mz0VhnBm

--HG--
extra : rebase_source : 30c952ed20ee64810d225e5778650dd01791964d
2017-12-15 14:55:08 -06:00
Hiroyuki Ikezoe b56f6b1267 Bug 1354947 - Add equal operators for comparing ComputedTimingFunction with nsTimingFunction. r=birtles
MozReview-Commit-ID: 7pQQP3xlKot

--HG--
extra : rebase_source : 08f7fa7739778942eea94e7987e268e2d5196b77
2017-05-13 16:34:38 +09:00
Boris Chiou 5daf1f2b75 Bug 1343153 - Part 1: Add some useful constructors for ComputedTimingFunction. r=birtles
In order to avoid creating a temporary nsTimingFunction in some cases and
calling Init(), add some useful constructors to reduce the redundant code.

MozReview-Commit-ID: I8zmWeKl9aw

--HG--
extra : rebase_source : 50a9adc90c26c16fd1dcd7b70c519794b8d406fd
2017-03-17 16:37:49 +08:00
Sebastian Hengst 08eaa88de2 Backed out changeset c5da825e8bd9 (bug 1343153) for timing out in dom/animation/test/crashtests/1278485-1.html, at least on Stylo. r=backout 2017-03-21 11:06:07 +01:00
Boris Chiou e846f398cc Bug 1343153 - Part 1: Add some useful constructors for ComputedTimingFunction. r=birtles
In order to avoid creating a temporary nsTimingFunction in some cases and
calling Init(), add some useful constructors to reduce the redundant code.

MozReview-Commit-ID: I8zmWeKl9aw

--HG--
extra : rebase_source : ef3b73e9e8798b2953f7db6ea5bb43ee12403649
2017-03-17 16:37:49 +08:00
Boris Chiou aa57157303 Bug 1248340 - Part 3: Implement Frames for OMTA. r=birtles
MozReview-Commit-ID: k3Wvl4ofe7

--HG--
extra : rebase_source : edbf827ffe102a5353c41078bd2b14c8b56eb23e
2017-02-26 15:34:02 +08:00
Boris Chiou 98f895d166 Bug 1248340 - Part 2: Implement Frames in ComputedTimingFunction. r=birtles
MozReview-Commit-ID: 92MAv3OD8Tu

--HG--
extra : rebase_source : 0e14ade9e9f022b641605e2c0f368e3a6c950c18
2017-02-24 16:59:02 +08:00
Daisuke Akatsuka 4f153efd27 Bug 1264865 - Part 3: Remove codes that are no longer in use. r=birtles
MozReview-Commit-ID: Dhrco8madlz

--HG--
extra : rebase_source : b26d9d25c2dd54f7ec0e12dd51127229cb085346
2016-07-27 10:13:17 +09:00
Daisuke Akatsuka 6c89bdf21b Bug 1248532 - Part 1: steps-start does not produce correct value at the beginning of the interval. r=birtles
MozReview-Commit-ID: F9b1HCfEqU6

--HG--
extra : transplant_source : %22xJ1%EBa%D6%7D%87%03%B84%2A5%CA9%93N%8A%16
2016-04-01 14:00:57 +09:00
Hiroyuki Ikezoe e3a804fcb1 Bug 1259878 - remove unnecessary isSome(). r=birtles
MozReview-Commit-ID: 3Xh2D5TOTSg

--HG--
extra : rebase_source : 95715a192eb67afc6f02ca4e8895dae705d64462
2016-03-26 10:52:08 +09:00
Hiroyuki Ikezoe 15210ae758 Bug 1216842 - Part 6: Make mTimingFunction in OrderedKeyframeValueEntry const Maybe<>*. r=cam 2016-01-29 14:47:00 +01:00
Hiroyuki Ikezoe 409715935c Bug 1216842 - Part 2: Add LayerAnimationUtils. r=cam
This is also for compositor side.
we need a new class to share the function which converts TimingFunction
to ComputedTimingFunction for either keyframe's timing function or keyframe
effect's timing function.
2016-01-29 14:44:00 +01:00
Boris Chiou fa79443f12 Bug 1214536 - Part 5: Add AnimationEffectTimingReadOnly interface. r=birtles, r=smaug
1. Add AnimationEffectTimingReadOnly.webidl.
2. Add AnimationEffectTimingReadOnly cpp files.
3. Use AnimationEffectTimingReadOnly as KeyframeEffectReadOnly::mTiming.

--HG--
extra : rebase_source : 0e9c112b70ae56f2bcdf162374388857518fc124
extra : amend_source : 0aebf0e9daac77542d913e4ad6a07c75e21a93b5
2016-01-13 18:37:00 +01:00
Boris Chiou 7203e534eb Bug 1208940 - Move ComputedTimingFunction to its own file. r=bbirtles 2015-11-01 22:41:00 +01:00