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

1281 Коммитов

Автор SHA1 Сообщение Дата
Manish Goregaokar 3188b9bfd6 Bug 1373018 - Part 10: stylo: Remove StyleSource; r=bholley
MozReview-Commit-ID: 4IcROeDNoBA

--HG--
extra : rebase_source : e2f65c316be2c5640150eb5ff5628505ce446535
2017-06-10 22:27:45 -07:00
Manish Goregaokar 02ab46c24d Bug 1373018 - Part 8: stylo: Move nsStyleContext::SetStyle to GeckoStyleContext; r=bholley
MozReview-Commit-ID: ycXu95whnG

--HG--
extra : rebase_source : 852051aa074cc8ed8f11f0d68c26fe4f0a6962b6
2017-06-10 22:27:45 -07:00
Boris Chiou ebc59facdc Bug 1339690 - Part 8: Produce an appropriate warning highlighting the invalid property value. r=birtles,flod
MozReview-Commit-ID: 1KoFMxOo78L

--HG--
extra : rebase_source : b37e83358d8ff0c77172246d72ddb11fbcd7954c
2017-06-14 14:18:25 +08:00
Boris Chiou ccd05b9231 Bug 1339690 - Part 7: Stop storing invalid property value. r=birtles
MozReview-Commit-ID: H3aRcJIk7CV

--HG--
extra : rebase_source : 774c1596364dd8e3eacf8a6bab093e9e1abf6e18
2017-06-14 11:43:47 +08:00
Boris Chiou 855f40d72b Bug 1339690 - Part 6: Move GetComputedKeyframeValues into local static. r=birtles
MozReview-Commit-ID: Ay3i9fDSbVg

--HG--
extra : rebase_source : 9d1de95cf15a0882fd50feb55878758c419d66ae
2017-06-14 12:51:27 +08:00
Boris Chiou d3495b8861 Bug 1339690 - Part 5: Merge two DistributeRange functions. r=birtles
MozReview-Commit-ID: 3QT09Qmy3Lg

--HG--
extra : rebase_source : 5590d5df20af5c7e0cc63fef97e203cdda202967
2017-06-15 10:54:36 +08:00
Boris Chiou 02bf8062fe Bug 1339690 - Part 4: Rename ApplyDistributeSpacing to DistributeKeyframes. r=birtles
There is no spacing mode any more, so rename this function.

MozReview-Commit-ID: 9DIqKmQnuJo

--HG--
extra : rebase_source : 3600be87a699a1a5fe237f8ed75baf03f0b5ae84
2017-06-15 10:47:32 +08:00
Boris Chiou f8dbd6bb32 Bug 1339690 - Part 3: Drop spacing mode. r=birtles,smaug
MozReview-Commit-ID: 1c7jpzWQjVP

--HG--
extra : rebase_source : 7850e290abb5fd87684c99710666c881eb777eb4
2017-06-13 15:09:19 +08:00
Boris Chiou 0946a7bd73 Bug 1339690 - Part 2: Drop tests of paced timing in dom/animation/test. r=birtles
MozReview-Commit-ID: BbfXB5MmMgE

--HG--
extra : rebase_source : 14677cb9edd9fdf706b79e3f6e2d0e7e1f0f6bdf
2017-06-13 13:30:58 +08:00
Brian Birtles 22d0b7d971 Bug 1371518 - Make KeyframeUtils::IsAnimatable consult the Servo backend; r=hiro
When styling with the Servo backend, we should also use the Servo backend to
determine if a property is animatable or not. However, if we do this,
Servo_Property_IsAnimatable will start returning true for the 'display' property
once we mark that as animatable in Servo (for SMIL).

Even if we later fail to actually animate 'display' (due checks added to Servo
in the next patch) we still need to treat 'display' as un-animatable in
KeyframeUtils so that we don't *read* the 'display' property of Keyframe objects
passed to the Animations API, since that is observable.

This patch makes us consult Servo_Property_IsAnimatable when using the Servo
backend and also explicitly treat the 'display' property as not animatable.

MozReview-Commit-ID: 1JllbeJisAS

--HG--
extra : rebase_source : d73b7d9ee0da03bfed68e574b67e10b342c1868d
2017-06-14 15:23:45 +09:00
Mantaroh Yoshinaga df6a321bc6 Bug 1353987 - Clear ready promise when animation is canceled. r=birtles
According to the spec, when we cancel an animation we should "reset an
animation's pending tasks"[1] which has following step:

...
4. Reject animation’s current ready promise with a DOMException named "AbortError".
5. Let animation’s current ready promise be the result of creating a new resolved Promise object.

Since we create the ready promise and, if need resolve it when we create it
(see Animation::GetReady), this patch simply clear the ready promise
when an animation is canceled.

[1] https://w3c.github.io/web-animations/#reset-an-animations-pending-tasks

MozReview-Commit-ID: JxoqeA5dXCO

--HG--
extra : rebase_source : 1c51724f236b3ed464eb6af3c20ccc9aaf5aa3e6
2017-06-12 10:45:48 +09:00
Daisuke Akatsuka 0100db259a Bug 1368610 - Part 6: Add tests for valid inherit value during animation. r=hiro
This tests are to confirm either we could get valid value of 'inherit' of
keyframe.
Also, this tests are for clone_XX methods of stylo as well.

MozReview-Commit-ID: J6HZBRZB5am

--HG--
extra : rebase_source : c8c282f3204d94931112fa9811bb5c51b8fe6992
2017-06-12 10:17:25 +09:00
Brian Birtles 7cb2663abe Bug 1367307 - Add content property to create pseudo element in web-platform-tests and devtools tests too; r=hiro
MozReview-Commit-ID: 35F2Cu1w0N7
2017-06-09 11:30:04 +09:00
Hiroyuki Ikezoe 34985a8f63 Bug 1367307 - Add content property to generate pseudo element. r=birtles
MozReview-Commit-ID: 2gvHexQUJKa

--HG--
extra : rebase_source : da6cde40edbbb0e5432c88b3949a9995b9ca6d87
2017-06-08 10:28:19 +09:00
Hiroyuki Ikezoe cdde6f6108 Bug 1368889 - Post animation restyle hint againt pseudo element instead of its parent. r=birtles
To traverse pseudo elements in animation-only restyle, the pseudo element
itself needs the animation-only dirty bit.

MozReview-Commit-ID: 11RfVqnPXfJ

--HG--
extra : rebase_source : d048c9a053c03bf3fef46fcbfd9cbd5f60204e1d
2017-06-08 10:22:25 +09:00
Boris Chiou 821f92d417 Bug 1335998 - Part 3: Add a crashtest for mismatched transform lists. r=hiro
Add this crashtest for interpolation/accumulation on mismatched transform lists
to make sure it doesn't crash and there is no leak because we use
nsCSSValueSharedList, instead of nsCSSValueList_heap, for Servo backend.

MozReview-Commit-ID: 2VdKSQcK7pj

--HG--
extra : rebase_source : f497e442a34f29fb0aa936c012ad7bc14cac2e7a
2017-06-03 16:56:03 +08:00
Jared Wein 8e35a61454 Bug 1370528 - Remove gramatically incorrect 'size' from CompositorAnimationWarningContentTooLargeArea string. r=flod
MozReview-Commit-ID: CufsKyWezU8

--HG--
extra : rebase_source : 99f68432905e483f786994d00983c505bcb58928
2017-06-06 09:49:56 -04:00
Jared Wein 6e57031fc1 Bug 1364221 - Allow frames to be prerendered as long as the area of the frame is less than the area of the relative limit and the dimensions are less than the absolute limit. r=mattwoodrow,mstange
MozReview-Commit-ID: C3QLjaCRbzE

--HG--
extra : rebase_source : 1c9ad6b7c04d65b8b71f5112b7f4c91415aa70d9
2017-06-05 17:01:19 -04:00
Carsten "Tomcat" Book c63e6d4789 Merge mozilla-central to mozilla-inbound 2017-06-02 14:32:35 +02:00
Ethan Lin ba7509a7c8 Bug 1358055 - Add reftest flags for background color layer to make try passed. r=kats 2017-06-02 18:21:07 +08:00
Hiroyuki Ikezoe 9a6ff6c63d Bug 1367293 - Drop ServoComputedValuesWithParent entirely. r=birtles
MozReview-Commit-ID: DGWNHiXoOlH

--HG--
extra : rebase_source : cc0fbb2c46479e4e99578d51ad7e0cd889dfe64e
2017-06-02 09:39:00 +09:00
Hiroyuki Ikezoe 14e0273b91 Bug 1367293 - Don't get parent style for GetComputedKeyframeValuesFor. r=birtles
MozReview-Commit-ID: 7WjsO7P2QGz

--HG--
extra : rebase_source : b9d2d672dd670f54174a5811c7d28efe268c0c4d
2017-06-02 09:38:54 +09:00
Hiroyuki Ikezoe b80937e1e4 Bug 1367293 - Explicitly cast nsStyleContext* to nullptr. r=birtles
In subsequent patches, the servo version of KeyframeUtils::ApplySpacing()
changes fifth argument to const ServoComputedValues*. If we still use nullptr
for the fifth argument in caller side, compilers can't determine whether
nsStyleContext* or const ServoComputedValues* should be used.

MozReview-Commit-ID: 1bE2cA7gRdi

--HG--
extra : rebase_source : 230b9b94bbfdcacf1b35a6c8eb1186e22b331047
2017-06-02 09:37:55 +09:00
Fernando Jimenez Moreno e85ff5cb1b Bug 1365674 - stylo: Simulate compute value failure for dom/animation mochitests. r=hiro
MozReview-Commit-ID: 8flMLuW2vZP

--HG--
extra : rebase_source : 572ddece88644de63930468f532c31d37167f017
2017-05-30 10:24:08 +02:00
Xidorn Quan e11cf006d5 Bug 1367028 part 1 - Simplify serialization of specified rect values in border-image props when possible. r=dholbert
MozReview-Commit-ID: C4mNCHqeIoX

--HG--
extra : rebase_source : bab410f278b2a0dc49e3aacf57b06a20699cca12
2017-05-29 14:53:58 +10:00
Carsten "Tomcat" Book b318c7dca7 merge mozilla-inbound to mozilla-central + UPGRADE_NSS_RELEASE a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/xpcshell.ini => toolkit/components/extensions/test/xpcshell/xpcshell-common.ini
extra : amend_source : 458fd54fe8070ca3034ac441267ff7025adb5251
2017-05-30 11:37:46 +02:00
Daisuke Akatsuka d27e5208ee Bug 1367283 - Part 9: Add tests to confirm valid 'inherit' value of -moz prefixed properties during animation. r=hiro
Test to confirm valid 'inherit' value of -moz prefixed properties during
animation. This also means to confirm the algorithm of clone_XX methods
of stylo.
NOTE: This file should have only animatable properties that have '-moz' prefix.

In this patch, appends following properties.

* -moz-box-align
* -moz-box-direction
* -moz-box-orient
* -moz-box-pack
* -moz-float-edge
* -moz-orient
* -moz-osx-font-smoothing
* -moz-user-focus
* -moz-user-input
* -moz-user-modify
* -moz-window-dragging

MozReview-Commit-ID: GfBfMkvfgGm

--HG--
extra : rebase_source : f2e220ccc0c6864ad15416a2cda470f64eeb62be
2017-05-30 10:42:59 +09:00
Geoff Brown 72cf96c3de Bug 1332970 - Allow assertion in test_restyles.html; r=hiro
Frequent intermittent assertions have been happening for a long time.
2017-05-29 16:03:51 -06:00
Ryan VanderMeulen c2e6a4f474 Backed out changeset bb1542b364f2 (bug 1364221) for Android 4.2 x86 test_animation_performance_warning.html failures on a CLOSED TREE. 2017-05-26 15:37:14 -04:00
Jared Wein bc9c4a158e Bug 1364221 - Allow frames to be prerendered as long as the area of the frame is less than the area of the relative limit and the dimensions are less than the absolute limit. r=mattwoodrow,mstange
MozReview-Commit-ID: C3QLjaCRbzE

--HG--
extra : rebase_source : 71907fe872ad6347ea30f1af441a3a3bd0724366
2017-05-23 17:41:06 -04:00
Brian Birtles 60c808ad43 Bug 1353202 - Add support for iteration composite modes r=hiro
MozReview-Commit-ID: BlmR88fPF6J

--HG--
extra : rebase_source : d57cb6ca20e314374cc5a26caf3d03a1ac71cd26
2017-05-24 11:14:35 +09:00
Ryan VanderMeulen 1734a80650 Merge m-c to inbound. a=merge 2017-05-23 11:15:49 -04:00
Mats Palmgren 297b9d70e1 Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
MozReview-Commit-ID: IbwWM0FL6HF

--HG--
extra : source : bbb688fe1ba3f5201a190c6e25b693ef7272ea2d
2017-05-21 17:15:00 +08:00
Carsten "Tomcat" Book 00d4ea331d Backed out changeset bbb688fe1ba3 (bug 1365614) 2017-05-22 15:45:31 +02:00
Carsten "Tomcat" Book 469e512b06 merge mozilla-inbound to mozilla-central a=merge 2017-05-22 13:00:17 +02:00
Hiroyuki Ikezoe 5ea0aea575 Bug 1329077 - Drop redundant waitForIdleCallback(). r=boris
We have already waitForIdle() in testcommon.js.

MozReview-Commit-ID: 64XTU2g8CO7

--HG--
extra : rebase_source : 028e6827f4d67b789b979673ceb5a8bef501dbf7
2017-05-20 20:33:59 +09:00
Hiroyuki Ikezoe 3de2aa4e0c Bug 1329077 - Revert the hack that opens a new window to use requestIdleCallback. r=boris
requestIdleCallback has been enable by default in bug 1314959.

MozReview-Commit-ID: 7rwqdsCdjNb

--HG--
extra : rebase_source : cb60996accfe733714c9b5dff983c2210c4fa98b
2017-05-20 20:33:26 +09:00
Mats Palmgren e706869580 Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz 2017-05-21 17:15:00 +08:00
Boris Chiou 9525862a92 Bug 1334036 - Part 12: Enable off-main thread animations. r=birtles
Remove the unconditional return from FindAnimationsForCompositor(), so
we can check if there is any property running on compositor.
Also, enable a reftest and fix the mochitest expectation:
1. The expectation numbers of test_animations_omta.html in e10s and non-e10s
   are different, so skip non-e10s.
2. We pass all tests in test_animations_omta_start.html with e10s;
   however, got 3 test failures with non-e10s, so skip this file with
   non-e10s.

MozReview-Commit-ID: IuOyAsUYguU

--HG--
extra : rebase_source : 8f8549063f2d1907e95d0bab450e1b6f851f8c84
2017-05-08 11:22:13 +08:00
Boris Chiou 38215cedea Bug 1334036 - Part 11: Trigger animation-only restyle when we handle an event with coordinates. r=birtles,heycam
We need to request an animation-only restyle to force flush all throttled
animations on main thread when we handle an event with coordinates
(e.g. mouse event).

MozReview-Commit-ID: KkjeQVsLgTl

--HG--
extra : rebase_source : 314408062e719e9f52df9a6726e2f3dad817bbef
2017-05-19 16:16:41 +08:00
Boris Chiou 731ab38439 Bug 1334036 - Part 10: Return AnimationValue for BaseStyle. r=hiro
We need to retrieve the correct base style for Servo backend, so change
the return value to AnimationValue and update
KeyframeEffectReadOnly::BaseStyle().

MozReview-Commit-ID: 9FL3h1DLoJt

--HG--
extra : rebase_source : 42284c5fe8b8135910cde44b0815eb475ca2f1cc
2017-05-10 11:06:19 +08:00
Boris Chiou 5ab8026281 Bug 1334036 - Part 7: Merge two similiar MaybeUpdateCascadeResults functions. r=birtles
MozReview-Commit-ID: 2NDdQRF3DQ8

--HG--
extra : rebase_source : b6b002e19a459acd644024a78532ab7923e3fc82
2017-05-11 13:26:07 +08:00
Boris Chiou 1e2c865691 Bug 1334036 - Part 5: Implement FFI for finding properties overriding animations. r=birtles,emilio
We need to traverse rule tree to get the important rules, so we will not
override them if they have animations running on compositor.

MozReview-Commit-ID: 67NO2nIcUfq

--HG--
extra : rebase_source : 24a4ea4ca10e00f409d94c81acacb3db72248b3f
2017-05-19 15:58:47 +08:00
Boris Chiou c13897d8fe Bug 1334036 - Part 4: Remove unused UpdateCascadeResults function. r=birtles,hiro
We don't use the public UpdateCascadeResults method, so remove it.

MozReview-Commit-ID: A2lWZaHWHTZ

--HG--
extra : rebase_source : 35a1d77fdeba5a1db74d15f523dba78801b0b48e
2017-05-10 13:46:36 +08:00
Boris Chiou f1f6a5d9dc Bug 1334036 - Part 3: Add a flag to represent we are in pre-traversal. r=birtles
We need this flag to avoid assertion in PostRestyleForAnimation(), which
may be called from MaybeUpdateCascadeResults() in pre-traversal.

MozReview-Commit-ID: 46AfoIUb9o3

--HG--
extra : rebase_source : 3290d9954be43ffaeb94b501ac346622651c452a
2017-05-11 13:08:35 +08:00
Boris Chiou 5561a71847 Bug 1334036 - Part 2: Restyle all elements with animations if there are non-animation restyles. r=birtles
We restyle elements with non-animation restyles even if the animations
are throttled.

MozReview-Commit-ID: Exhd4qVx7su

--HG--
extra : rebase_source : 1632bf949bb60a894372a425fd9173e1b718452d
2017-05-17 11:41:43 +08:00
Boris Chiou 3f5f72a1eb Bug 1334036 - Part 1: Avoid mutating mElementsToRestyle during pre-traversal. r=birtles
During pre-traversal of EffectCompositor, we call MaybeUpdateCascadeResult(),
which may add new element into mElementsToRestyle, as a result, we may
iterate a mutated mElementsToRestyle. In this patch, we copy the element
which needs update cascade results into another set and traverse this new set
to call MaybeUpdateCascadeResult(). After that, do normal pre-traversal on
mElementsToRestyle.

MozReview-Commit-ID: 3uo6Ec5JNjp

--HG--
extra : rebase_source : 3cdc3c3147f011074a884d85da2655e0ed4a3730
2017-04-28 14:00:13 +08:00
Boris Chiou e60859ca4a Bug 1366441 - Enable dom.animations-api.core.enabled for test_animation_observers_sync.html. r=hiro
MozReview-Commit-ID: 92PN6ABOFPm

--HG--
extra : rebase_source : 8e350c51aa9153088adabd104d6b7e053d8325d1
2017-05-20 17:09:00 +08:00
cku b77ed1d09b Bug 1205475 - (followup) Declare mMayHaveOpacityAnim and mMayHaveTransformAnim as bool. r=me
The type of these two members is intended to be boolean. Fix the typo in this
patch.

MozReview-Commit-ID: HcwvUQztw9J

--HG--
extra : amend_source : 59c29156231c9c93f5939afeda1641da72a50489
2017-05-23 21:47:46 +08:00
Wes Kocher f8ee017832 Backed out changeset f8c14563b37d (bug 1364221) for m(c1) failures in test_animation_performance_warning.html a=backout
MozReview-Commit-ID: 9vwi69eAZ5r

--HG--
extra : rebase_source : 5cba4d42b12447f6734b4cf1c1f4d9956bc1ace3
2017-05-19 14:01:47 -07:00