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

1351 Коммитов

Автор SHA1 Сообщение Дата
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
Hiroyuki Ikezoe d041bd8493 Bug 1389450 - Use a valid value for -moz-force-broken-image test. r=daisuke
From the official link for -moz-force-broken-image:

 A value of 1 means that the broken image icon is even shown if the image has
 an alt attribute. A value of 0 only displays the alt attribute.

It's really ambiguous how we handle other values. Actually stylo's parser
rejects other values.  We should use the valid values for this test.

MozReview-Commit-ID: CzmIvsmauke

--HG--
extra : rebase_source : a6387e07b3578cf811bd17f772d791ec73bfa1e7
2017-08-11 20:19:43 +09:00
Hiroyuki Ikezoe 1cc55be690 Bug 1379516 - A test case that checks animations on the compositor keeps running on the compositor when unrelated style attribute is changed. r=birtles
MozReview-Commit-ID: 7fX6fRiZsw5

--HG--
extra : rebase_source : 8583a4633a7dc61dbfb2cbb4a5c647af7aa1da6e
2017-08-11 08:44:16 +09:00
Hiroyuki Ikezoe 80dfc0d6fb Bug 1379516 - Mark animation timerline marker for stylo. r=birtles
MozReview-Commit-ID: GkPSXEk4xua

--HG--
extra : rebase_source : 3fa0f5029bcfd87e9d6abfec9c6ea5d03a7656e6
2017-08-11 08:44:11 +09:00
Hiroyuki Ikezoe 94c7df914d Bug 1379516 - Add descriptions for re-attaching orphaned animation case for stylo. r=birtles
Unlike Gecko, Stylo currently invokes a needless RequestRestyle(Standard)
for this test case (bug 1388560). For this reason, the check right after
re-attaching the orphaned element passes accidentally.

MozReview-Commit-ID: JUG1dgMUQEX

--HG--
extra : rebase_source : a86d72a41c160edc30f83d82179ebe1226b842de
2017-08-11 08:43:45 +09:00
Hiroyuki Ikezoe 6c56c62a1c Bug 1379516 - Update the test where an orphaned element is attached to a document. r=birtles
Actually we have a chance to run styling process when we attach an orphaned
element to a document in this test setup. Precisely, we can process a restyle
between rAF callbacks and Promise.then() callback for waitForAnimationFrames().
So if we call RequestRestyle(Layer) when we attach the element to the document
(bug 1388557), the animation starts restyling in the first frame. *BUT* this
behavior will also change once our micro tasks handling becomes the HTML spec
compliance (bug 1193394). When the micro tasks handling changes, we should also
fix a bunch of test cases and test utilities in bug 1388557.

MozReview-Commit-ID: GyH1ofGhXOP

--HG--
extra : rebase_source : 3536c315960150960fd43286b205c03c584d53ca
2017-08-11 08:43:45 +09:00
Hiroyuki Ikezoe bc0c27d4eb Bug 1379516 - Skip offscreen throttling tests on stylo. r=birtles
MozReview-Commit-ID: F3k3snSRDJG

--HG--
extra : rebase_source : c982236d1871541796d0099b312231a22a9c879d
2017-08-11 08:43:45 +09:00
Hiroyuki Ikezoe 46ef7fb2b9 Bug 1379516 - Add isStyledByServo(). r=birtles
DOMWindowUtils.isStyledByServo checks not only the preference value but also
STYLO_FORCE_ENABLED value. This is important especially when we run test on
our CI. On our CI, the preference value is false but just STYLO_FORCE_ENABLED
is set.

MozReview-Commit-ID: FKEd5LFwcxf

--HG--
extra : rebase_source : 1ffd8a68a8339babed14f441bf2d69c9ffd9e3ee
2017-08-11 08:43:45 +09:00
Hiroyuki Ikezoe 393dc8eb24 Bug 1379516 - Get dom.animations.offscreen-throttling preference value just once at startup. r=birtles
MozReview-Commit-ID: KiZ3SRrsCOx

--HG--
extra : rebase_source : e63cd9e2c8c28d3e7c90c3c17fb25ea9844c3fe7
2017-08-11 08:43:45 +09:00
Hiroyuki Ikezoe 1545907066 Bug 1388209 - Enable test_animation_observers_async.html on stylo. r=birtles
It has been able to pass on stylo since bug 1376248.

MozReview-Commit-ID: 142ptKlqrHe

--HG--
extra : rebase_source : 3bb601122b1593d87a520d3585cc84c0868d6ac8
2017-08-08 11:04:02 +09:00
Nicholas Nethercote f941156987 Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron.
This removes about 2/3 of the occurrences of nsXPIDLString in the tree. The
places where nsXPIDLStrings are null-checked are replaced with |rv| checks.

The patch also removes a couple of unused declarations from
nsIStringBundle.idl.

Note that nsStringBundle::GetStringFromNameHelper() was merged into
GetStringFromName(), because they both would have had the same signature.

--HG--
extra : rebase_source : ac40bc31c2a4997f2db0bd5069cc008757a2df6d
2017-08-04 14:40:52 +10:00
Brad Werth d073eb9bda Bug 1383296 Part 1: Remove all uses of the nsCSSValue::Serialization enum, now that it no longer has multiple values. r=heycam
MozReview-Commit-ID: n6px5hNHtB

--HG--
extra : rebase_source : 6269a9d52e0282d0391276dc1b9ee26dbde7b985
2017-07-21 17:26:35 -07:00
Boris Chiou 7c6e2bd80c Bug 1383998 - Enable dom/animation/test/css-transitions/test_element-get-animations.html. r=heycam
MozReview-Commit-ID: Dbr3XpkZk20

--HG--
extra : rebase_source : 8f630e1f0d06c2dddeadcc6ab340989e93914595
2017-08-02 11:54:04 +08:00
Hiroyuki Ikezoe 16b042e1e5 Bug 1367975 - Call RequestRestyle(Layer) when specified timing is changed for CSS animations. r=birtles
Current Gecko does not need this (see bug 1367975 comment 10 for the reason),
but this is the right thing to do for our animation styling machinery
especially for updating animations on the compositor.


MozReview-Commit-ID: H6mgTXMHecG

--HG--
extra : rebase_source : ef2e5127a5c56008771a434cc5c342ebeca1b7be
2017-08-03 06:34:38 +09:00
Mantaroh Yoshinaga 2552a3af16 Bug 1377541 - Change the order of serialized value for mochitest. r=birtles
MozReview-Commit-ID: 1zL93y3Lkxd

--HG--
extra : rebase_source : c49f368e548bafb75474e0d21725c87ddcc453e5
2017-08-01 23:20:35 +09:00
Emilio Cobos Álvarez 1a47c01765 Bug 1384542: Move GetParent and IsLinkContext to GeckoStyleContext. r=heycam
MozReview-Commit-ID: C19yGcphixX
2017-07-31 14:32:59 +02:00
Xidorn Quan c4c6fbf75a Bug 1383980 - Enable animation mochitests in mochitest-style task. r=birtles
MozReview-Commit-ID: 38Ir2MG7IMO

--HG--
extra : rebase_source : 0997b7026a24cc271ad977db5ce233c393554dfa
2017-07-25 14:17:04 +10:00
Cameron McCormack f6934ef88b Bug 1376248 - Part 2: Allow tree_ordering sub-test to generate records in any order when simultaneously starting animations. r=birtles
MozReview-Commit-ID: AHkOA7DrXji

--HG--
extra : rebase_source : da38bba8839fe2743bfca3f96d1604dd0fb9b929
2017-07-24 16:03:42 +08:00
Brian Birtles 3f0630429e Bug 1371493 - Compare AnimationValues when producing property-based keyframes; r=hiro
The KeyframeEffectReadOnly::GetProperties compares AnimationValue's mGecko
member which means it sometimes produces the wrong results when using the Servo
backend. Now that AnimationValue has a suitable operator!= method we can simply
compare the AnimationValues directly.

MozReview-Commit-ID: DQQbmcdeynw

--HG--
extra : rebase_source : 509230cf460308b0a534fe9831e9e0d7fa3b8bee
2017-07-24 10:25:13 +09:00
Hiroyuki Ikezoe 604fc397e4 Bug 1380258 - Test case for restarting CSS animation on pseudo element once after the pseudo element was re-generated. r=birtles
This test fails without the first patch in this series.

MozReview-Commit-ID: A22aFPnklqj

--HG--
extra : rebase_source : c3a4e1f1dea0444895a3b60c45814c219ff65ac6
2017-01-16 07:49:09 +09:00
Emilio Cobos Álvarez 2b7de51623 Bug 1381844: Be more explicit about the kind of style context we handle all the time. r=bholley
MozReview-Commit-ID: E0mdkhU3XBz
2017-07-22 18:02:57 +02:00
Manish Goregaokar 26f3a98f78 Bug 1382017 part 4 Gecko piece - Remove usage of ServoComputedValues from most Gecko code; r=xidorn
MozReview-Commit-ID: 2NB4DgxMrL3
2017-07-20 17:27:05 -07:00
Cameron McCormack 9654eabe7f Bug 1380133 - Part 1: Minor reformatting and encapsulation. r=emilio
MozReview-Commit-ID: 3hmptLbxxok
---
 dom/animation/KeyframeUtils.h      |  2 +-
 layout/style/ServoBindings.cpp     | 24 +++++++++++++++---------
 layout/style/ServoStyleContext.cpp | 21 ++++++++++++---------
 layout/style/ServoStyleContext.h   | 33 ++++++++++++++-------------------
 layout/style/ServoTypes.h          | 24 ++++++++++++++----------
 layout/style/nsAnimationManager.h  |  7 +++----
 6 files changed, 59 insertions(+), 52 deletions(-)

--HG--
extra : rebase_source : 150278b5f7429986e79976ec9faf290db6de86c0
2017-07-21 11:42:42 +08:00
Daisuke Akatsuka 3045b91d6e Bug 1378076 - Part 4: add tests for moz prefixed properties. r=hiro
Add tests for following moz prefixed properties.

* -moz-user-select

MozReview-Commit-ID: 6X3iNYpc6kH

--HG--
extra : rebase_source : dc7d53801bab2b5563af3b35fd2f045b60000132
2017-07-20 15:21:12 +09:00
Brian Birtles 267881f1f1 Bug 1381389 - Append PropertyValuePair objects on Gecko side so they are initialized correctly; r=hiro
Without this mValue may end up looking like a valid nsCSSValue object and bad
things will happen when we try to clone it.

We could just assign mem::zeroed() to mValue but this array hacking on the Servo
side is already pretty nasty and mSimulateComputeValuesFailure would still
remain unassigned (and if we did try to assign it on the Servo side we'd need to
only assign it in debug builds). Unless this proves performance-critical, it's
probably best to just do this on the Gecko side.

MozReview-Commit-ID: 75nFsflhZUM

--HG--
extra : rebase_source : 0e5d94a7f6fdb6768983ba440a3ea69d65cbffbf
2017-07-20 14:38:54 +09:00
Emilio Cobos Álvarez dde6942936 Bug 1381764 - style: More ComputedValuesInner cleanup. r=Manishearth on a CLOSED TREE
MozReview-Commit-ID: 8rkAP3pMEpD
2017-07-18 16:22:33 -07:00
Emilio Cobos Álvarez 9a6ef770c1 Bug 1381764: Cleanup the Gecko bits. r=manishearth
MozReview-Commit-ID: dbVDy1u4vp
2017-07-18 16:22:00 -07:00
Manish Goregaokar f33beecc59 Bug 1367904 - Part 10: stylo: Switch Gecko over to ServoStyleContext; r=bholley
MozReview-Commit-ID: EmopKVjEzlz
2017-07-17 21:00:46 -07:00
Manish Goregaokar c2b070c584 Bug 1367904 - Part 5: stylo: Make GetBaseComputedValuesForElement return a style context; r=bholley
MozReview-Commit-ID: K5WpWc26xNZ
2017-07-17 21:00:32 -07:00
Emilio Cobos Álvarez dc33155ad6 Bug 1379505: Allow calling GetBaseComputedStylesForElement for an unstyled element. r=boris
Before this refactoring, getComputedStyle could have side effects, and left the
style data in the element, so we could never arrive there without data.

There are a few crashtests that caught this, but this was already broken if you
called animate() on an element deep in a display: none subtree.

MozReview-Commit-ID: 1AvOvhAyOP3

--HG--
extra : rebase_source : 0a920df8809961f784026a14a624d8eafb4cc79f
2017-07-10 13:33:21 +02:00
Brian Birtles 4ec9d9a3c9 Bug 1370123 - Skip restyling elements in documents without a pres shell; r=heycam
The previous patch takes the approach that we should simply not add elements in
documents without a pres shell to EffectCompositor's set of elements to restyle.
However, there exists a case where we might have an element in a displayed
document, then we might tickle it so that it requests an animation restyle, and
then move it to a document without a browsing context. In that case we should
skip the element when we next do animation restyles.

However, even if we successfully skip the element in the document without a pres
shell, we need to make sure it eventually gets removed from the set of elements
to restyle rather than simply remaining there forever. For that reason this
patch makes us unconditionally clear the set of elements to restyle whenever we
do a full restyle from the root.

This patch also adds a test case to trigger the scenario outlined in the first
paragraph above. I have confirmed that without the code changes in this patch,
if we simply assert that target.mElement has an associated pres shell in
getNeededRestyleTarget, then that assertion will fail when running this test
case.

MozReview-Commit-ID: ED2X5g39hYZ

--HG--
extra : rebase_source : 06fecc98c25c739d26123bddf1fd0908cf4410e6
extra : source : 12c7a036215a901bf6804c0e9aacd2a9fc20f932
2017-06-21 14:45:24 +09:00
Brian Birtles 9696b59052 Bug 1370123 - Ignore animation restyle requests for elements in documents without a pres shell; r=heycam
This patch makes us ignore animation restyle requests for elements in documents
without a pres shell made by either:

* Calls to EffectCompositor::RequestRestyle (e.g. by calling Web Animations API
  methods on animations that target such elements)

* Calls to EffectCompostior::PreTraverse(dom::Element*, CSSPseudoElementType)
  (e.g. by calling getComputedStyle(elem).prop on such an element).

  The other overloads of PreTraverse should presumably be called during regular
  document restyling where the element is expected to be in a displayed document
  and hence we simply assert that that is the case for those methods.

MozReview-Commit-ID: FZD0hKAXYEf

--HG--
extra : rebase_source : 9b9ddf4648b49e0241054ffa51a02ae66f1c5009
2017-06-21 08:48:21 +09:00
Brian Birtles f5f71f7eb5 Bug 1370123 - Add tests for Element.animate when used on an element in a document without a browsing context; r=xidorn
MozReview-Commit-ID: FL37UKP6s3k

--HG--
extra : rebase_source : e71da012708f2df179049cee9a1dedc875ff13af
2017-06-19 12:19:57 +09:00
Josh Matthews e0c37f0ed3 Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter. r=emilio
MozReview-Commit-ID: 3r5Z6KiPgRM
2017-07-10 17:52:00 -04:00
Carsten "Tomcat" Book 1f4ac4e7ce Merge mozilla-central to autoland 2017-07-10 13:21:25 +02:00
Brian Birtles 48097ceb05 Bug 1376594 - Coalesce two hashmap lookups in EffectCompositor::RequestRestyle; r=mats+5168
MozReview-Commit-ID: 4TyFKwtcDEz

--HG--
extra : rebase_source : 59edb907e7179a296bb2f553f555f13157d54220
2017-07-05 10:30:44 +09:00
Brian Birtles 8ff7b93580 Bug 1376594 - Track locally whether an effect is part of an EffectSet to avoid hashmap lookups; r=hiro
MozReview-Commit-ID: IEeAmyR9ZlS

--HG--
extra : rebase_source : 112ec688662a14668839f3ceb45192e50edbe381
2017-07-05 10:29:58 +09:00
Wes Kocher a9eb08898f Backed out changeset f220d8060c14 (bug 1352669) for build bustage CLOSED TREE a=bustage
MozReview-Commit-ID: INYGT4WT1pO
2017-07-06 14:56:06 -07:00
Josh Matthews 723b20d420 Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter.
MozReview-Commit-ID: 3r5Z6KiPgRM
2017-07-06 13:15:08 -07:00
J. Ryan Stinnett 0338ac2a6a Bug 1371457 - Update animation restyle tests. r=hiro
Update the various animation restyle tests to check the new animation only data
inside the restyle marker.

MozReview-Commit-ID: HEe8x45IhHj

--HG--
extra : rebase_source : fdaa5855e94d68ce2a70d00fde11582c9a538f45
2017-06-29 10:14:31 -07:00
Geoff Brown 79ab006d0e Bug 1326306 - Skip test_restyles.html on Android; r=hiro 2017-07-09 17:18:05 -06:00