bors-servo
427003210b
Auto merge of #22930 - emilio:gecko-sync, r=emilio
...
style: Sync changes from mozilla-central.
See individual commits for details.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22930 )
<!-- Reviewable:end -->
2019-02-24 08:31:08 -05:00
bors-servo
f18d64ce58
Auto merge of #22929 - servo-wpt-sync:wpt_update_23-02-2019, r=jdm
...
Sync WPT with upstream (23-02-2019)
Automated downstream sync of changes from upstream as of 23-02-2019.
[no-wpt-sync]
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22929 )
<!-- Reviewable:end -->
2019-02-24 01:34:12 -05:00
Emilio Cobos Álvarez
3a1539ccde
style: Appease tidy.
2019-02-23 21:05:34 -08:00
Emilio Cobos Álvarez
44ae191e72
Fix servo build.
2019-02-23 21:05:34 -08:00
Emilio Cobos Álvarez
f6b6465ec6
style: Remove unnecessary derive.
2019-02-23 21:05:33 -08:00
Emilio Cobos Álvarez
be616c31e8
style: Rustfmt recent changes.
2019-02-23 21:05:32 -08:00
Emilio Cobos Álvarez
71daec59eb
style: Use Rust types from transform-origin / perspective-origin.
...
Differential Revision: https://phabricator.services.mozilla.com/D20382
2019-02-23 21:05:23 -08:00
Emilio Cobos Álvarez
74d7d5bc42
style: Use Rust types for perspective and z-index.
...
Differential Revision: https://phabricator.services.mozilla.com/D20381
2019-02-23 21:05:17 -08:00
Asfiya
6428ed726d
style: Convert NS_STYLE_FLEX_DIRECTION to an enum class in nsStyleConsts.h
...
Converted the #define variable NS_STYLE_FLEX_DIRECTION to an enum class in nsStyleConsts.h and made changes in other files that access it
Differential Revision: https://phabricator.services.mozilla.com/D20291
2019-02-23 21:05:07 -08:00
scharing
85718c3b5a
style: Convert NS_STYLE_MASK_MODE_* to enum class.
...
Differential Revision: https://phabricator.services.mozilla.com/D20063
2019-02-23 21:05:00 -08:00
Emilio Cobos Álvarez
73d5b82f9f
style: Improve #[derive(Parse)].
...
I want to do this so that I can get rid of Either<>. The reasons for getting rid
of either are multiple:
* It doesn't generate as nice C++ code using cbindgen.
* It isn't that nice to use either from Rust.
* cbindgen has bugs with zero-sized types.
I started using this for ColorOrAuto and a few others, for now.
Differential Revision: https://phabricator.services.mozilla.com/D19844
2019-02-23 21:04:44 -08:00
Emilio Cobos Álvarez
6118e4d993
style: Use Rust types for some misc properties.
...
-moz-tab-size, border-image-outset and border-image-slice.
This is not a particularly interesting patch, just removes some code. We can
remove way more code when a few related properties are also ported.
Differential Revision: https://phabricator.services.mozilla.com/D19825
2019-02-23 21:04:33 -08:00
Emilio Cobos Álvarez
eefd440656
style: Remove nsFont::featureValueLookup.
...
It's a global object, it doesn't have to be stored in nsFont. Pass it from the
caller like the user font set and co.
Depends on D20141
Differential Revision: https://phabricator.services.mozilla.com/D20142
2019-02-23 21:04:26 -08:00
Emilio Cobos Álvarez
dcfe30ff18
style: Remove a couple trivial dependencies on nsPresContext.
...
Differential Revision: https://phabricator.services.mozilla.com/D20141
2019-02-23 21:04:19 -08:00
Emilio Cobos Álvarez
3231714758
style: Include anon boxes in CSSPseudoElementType, to remove ComputedStyle::mPseudoTag.
...
This is more consistent with what the Rust bits of the style system do, and
removes a pointer from ComputedStyle which is always nice.
This also aligns the Rust bits with the C++ bits re. not treating xul pseudos as
anonymous boxes. See the comment in nsTreeStyleCache.cpp regarding those.
Can't wait for XUL trees to die.
Differential Revision: https://phabricator.services.mozilla.com/D19002
2019-02-23 21:04:03 -08:00
Hiroyuki Ikezoe
22e12a0f52
style: Implement scroll-snap-align parser and serializer.
...
https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align
Differential Revision: https://phabricator.services.mozilla.com/D20205
2019-02-23 21:03:55 -08:00
Hiroyuki Ikezoe
7cbaaf6734
style: Implement scroll-padding parser and serializer.
...
Differential Revision: https://phabricator.services.mozilla.com/D20103
2019-02-23 21:03:47 -08:00
Hiroyuki Ikezoe
79a5e97c13
style: Implement scroll-margin parser and serializer.
...
The reason why we use RelaxedAtomBool is that
ScrollSnapUtils::GetSnapPointForDestination() is called both from the main and
the compositor threads, and the function will have a branch depending on the
pref value.
Differential Revision: https://phabricator.services.mozilla.com/D20101
2019-02-23 21:03:29 -08:00
Jonathan Kingston
d6750de0c3
style: Add support for CSS prefers-color-scheme media feature.
...
Bug: 1494034
Reviewed-by: emilio
2019-02-23 21:03:07 -08:00
Brian Birtles
71d9fe5d60
style: Don't share styles when an element has animations applied to it.
...
We already avoid putting styles in the shared style cache for an element that
has animations[1] but if we are doing the initial style of two siblings where
the _second_ has animations applied, there is nothing to stop us from trying to
share with the first (un-animated) element. This patch adds a check to prevent
sharing in that case since sharing style between animated elements is unsound
for the reasons described in [1].
A number of tests including:
testing/web-platform/tests/web-animations/animation-model/animation-types/visibility.html
will fail without this fix once we remove the style flush from
KeyframeEffect::SetKeyframes later in this patch series.
[1] https://searchfox.org/mozilla-central/rev/6e3cc153566f5f288ae768a2172385b8436d61dd/servo/components/style/sharing/mod.rs#597
Differential Revision: https://phabricator.services.mozilla.com/D18913
2019-02-23 21:02:53 -08:00
Emilio Cobos Álvarez
07cb325402
style: Use rust types for background-size.
...
Hopefully straight-forward.
Differential Revision: https://phabricator.services.mozilla.com/D19625
2019-02-23 21:02:46 -08:00
Emilio Cobos Álvarez
1e6338e1ee
style: Use Rust types for Position.
...
This one should be much easier to review / much more pleasant to see :-)
Differential Revision: https://phabricator.services.mozilla.com/D19563
2019-02-23 21:02:36 -08:00
Emilio Cobos Álvarez
d4ad12bee4
style: Preserve calc() rounding behavior.
...
See the comment. I don't really this is ideal, I filed bug 1528114 to
investigate changing that.
Differential Revision: https://phabricator.services.mozilla.com/D19584
2019-02-23 21:02:27 -08:00
Emilio Cobos Álvarez
f7a59bf0ee
style: Use Rust sizes for flex-basis, width, height, and their min/max properties.
...
Really sorry for the size of the patch :(
Only intentional behavior change is in the uses of HasLengthAndPercentage(),
where it's easier to do the right thing. The checks that used to check for
(IsCalcUnit() && CalcHasPercentage()) are wrong since bug 957915.
Differential Revision: https://phabricator.services.mozilla.com/D19553
2019-02-23 21:02:18 -08:00
WPT Sync Bot
8c91d13e13
Update web-platform-tests to revision 8805f23ef629338b6d28ae25cc13839e99acea1b
2019-02-23 23:29:05 -05:00
bors-servo
e12c76982d
Auto merge of #22927 - servo-wpt-sync:wpt_update_22-02-2019, r=jdm
...
Sync WPT with upstream (22-02-2019)
Automated downstream sync of changes from upstream as of 22-02-2019.
[no-wpt-sync]
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22927 )
<!-- Reviewable:end -->
2019-02-23 06:12:02 -05:00
WPT Sync Bot
4334a9c855
Update web-platform-tests to revision 70df598b894bfa4a7122720608a3110cb25ceb42
2019-02-22 22:40:32 -05:00
bors-servo
7f495fdd61
Auto merge of #22925 - servo-wpt-sync:wpt_update_21-02-2019, r=jdm
...
Sync WPT with upstream (21-02-2019)
Automated downstream sync of changes from upstream as of 21-02-2019.
[no-wpt-sync]
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22925 )
<!-- Reviewable:end -->
2019-02-22 03:03:05 -05:00
WPT Sync Bot
0355b8e70d
Update web-platform-tests to revision 181f8381fe9373e027f4b5ba5d1439843ad2c2e6
2019-02-21 23:28:36 -05:00
bors-servo
0dda115609
Auto merge of #22919 - servo-wpt-sync:wpt_update_20-02-2019, r=jdm
...
Sync WPT with upstream (20-02-2019)
Automated downstream sync of changes from upstream as of 20-02-2019.
[no-wpt-sync]
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22919 )
<!-- Reviewable:end -->
2019-02-20 23:53:12 -05:00
WPT Sync Bot
7680aab725
Update web-platform-tests to revision 91b1effe848fac6e73a203037fc333b0fff3174d
2019-02-20 23:29:47 -05:00
bors-servo
6bb98ad17a
Auto merge of #22916 - servo-wpt-sync:wpt_update_19-02-2019, r=jdm
...
Sync WPT with upstream (19-02-2019)
Automated downstream sync of changes from upstream as of 19-02-2019.
[no-wpt-sync]
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22916 )
<!-- Reviewable:end -->
2019-02-20 07:55:29 -05:00
WPT Sync Bot
459fbb1a34
Update web-platform-tests to revision eb6b0210d6f0b1b44bc74385de04a2291ce2575c
2019-02-19 23:01:14 -05:00
bors-servo
cc8a9fa928
Auto merge of #22911 - Manishearth:xr-spec-fixes, r=jdm
...
Some XR spec fixes
Tie in some concepts that were previously left out of the
implementation.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22911 )
<!-- Reviewable:end -->
2019-02-19 11:09:22 -05:00
bors-servo
6441f383dd
Auto merge of #22910 - paulrouget:fix-jni-logs, r=jdm
...
Fix log filter. simpleservo::api doesn't exist anymore
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22910 )
<!-- Reviewable:end -->
2019-02-19 08:10:38 -05:00
Manish Goregaokar
c44b63f335
Handle erroring out when there are multiple immersive sessions
2019-02-19 17:50:46 +05:30
Manish Goregaokar
37872b8b9c
Add XREnvironmentBlendMode
2019-02-19 16:08:39 +05:30
Paul Rouget
9ef2cb5680
Fix log filter. simpleservo::api doesn't exist anymore
2019-02-19 10:13:44 +01:00
bors-servo
79eecec78f
Auto merge of #22909 - servo-wpt-sync:wpt_update_18-02-2019, r=jdm
...
Sync WPT with upstream (18-02-2019)
Automated downstream sync of changes from upstream as of 18-02-2019.
[no-wpt-sync]
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22909 )
<!-- Reviewable:end -->
2019-02-18 22:51:44 -05:00
WPT Sync Bot
faf92483da
Update web-platform-tests to revision 2b66b8b24b727c7490bf6091dd8a6a551642720b
2019-02-18 22:40:08 -05:00
bors-servo
b0751f4241
Auto merge of #22907 - servo-wpt-sync:wpt_update_17-02-2019, r=jdm
...
Sync WPT with upstream (17-02-2019)
Automated downstream sync of changes from upstream as of 17-02-2019.
[no-wpt-sync]
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22907 )
<!-- Reviewable:end -->
2019-02-18 08:34:39 -05:00
bors-servo
884aac7233
Auto merge of #22852 - paulrouget:opengl, r=Manishearth
...
libsimpleservo: OpenGL support for Linux (glx)
Tested with Xorg + nouveau driver.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22852 )
<!-- Reviewable:end -->
2019-02-18 05:04:08 -05:00
WPT Sync Bot
9710896ed5
Update web-platform-tests to revision 3a43f99a56a4c016e3f1cda41330f1a2c0e780ff
2019-02-17 23:20:35 -05:00
bors-servo
f6de47c731
Auto merge of #22906 - servo-wpt-sync:wpt_update_16-02-2019, r=jdm
...
Sync WPT with upstream (16-02-2019)
Automated downstream sync of changes from upstream as of 16-02-2019.
[no-wpt-sync]
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22906 )
<!-- Reviewable:end -->
2019-02-17 00:12:53 -05:00
WPT Sync Bot
9c112bc2a2
Update web-platform-tests to revision 2bed10ac31899a4812f7e1d32ac69ade0bbe7f4f
2019-02-16 22:48:42 -05:00
bors-servo
0c10702e4b
Auto merge of #22902 - servo-wpt-sync:wpt_update_15-02-2019, r=jdm
...
Sync WPT with upstream (15-02-2019)
Automated downstream sync of changes from upstream as of 15-02-2019.
[no-wpt-sync]
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22902 )
<!-- Reviewable:end -->
2019-02-15 23:27:40 -05:00
WPT Sync Bot
f96f9a1b78
Update web-platform-tests to revision 21461a83c51b72bcff82476c1b79a26a194e7bab
2019-02-15 22:57:54 -05:00
bors-servo
ea206034ad
Auto merge of #22896 - servo:generic-worker-13, r=jdm
...
Windows AMI for Taskcluster: update generic-worker to 13.0.2
CC: https://bugzilla.mozilla.org/show_bug.cgi?id=1375182#c6
Fixes #22870
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22896 )
<!-- Reviewable:end -->
2019-02-15 15:58:58 -05:00
Simon Sapin
c39dbb81e3
TC Windows: Use generic-worker "raw mounts" for the sparse-checkout file
...
CC https://bugzilla.mozilla.org/show_bug.cgi?id=1495732
2019-02-15 20:20:25 +01:00
Simon Sapin
ddb85a92de
Windows AMI for Taskcluster: update generic-worker to 13.0.2
2019-02-15 18:18:39 +01:00