Commit graph

36209 commits

Author SHA1 Message Date
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
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
bors-servo
19495a76e4
Auto merge of #22894 - uu1t:remove-arg-in-brewfile, r=SimonSapin
Fix installing dependencies on macOS using Homebrew

<!-- Please describe your changes on the following line: -->
gst-plugins-base can't be installed with the Brewfile on macOS because install options are removed in Homebrew/Homebrew-core#31510 and enabled by default in Homebrew/homebrew-core@d5a5796066.

Removing `args` argument will fix this issue.
2c63d1296b/etc/taskcluster/macos/Brewfile (L7)

**Versions**

Homebrew 2.0.1-44-g058bd4b
Homebrew/homebrew-core (git revision d0d8d; last commit 2019-02-14)

**Failed command output**

```
$ brew bundle install --file=etc/taskcluster/macos/Brewfile
Installing autoconf@2.13
Installing automake
Installing cmake
Using openssl
Installing pkg-config
Installing gstreamer
Usage: brew install [options] formula

Install formula.

formula is usually the name of the formula to install, but it can be specified
in several different ways.

Unless HOMEBREW_NO_INSTALL_CLEANUP is set, brew cleanup will be run for the installed formulae or, every 30 days, for all formulae.

    -d, --debug                      If brewing fails, open an interactive
                                     debugging session with access to IRB or a
                                     shell inside the temporary build directory
        --env                        If std is passed, use the standard build
                                     environment instead of superenv.If super
                                     is passed, use superenv even if the formula
                                     specifies the standard build environment.
        --ignore-dependencies        Skip installing any dependencies of any
                                     kind. If they are not already present, the
                                     formula will probably fail to install.
        --only-dependencies          Install the dependencies with specified
                                     options but do not install the specified
                                     formula.
        --cc                         Attempt to compile using provided
                                     compiler. compiler should be the name
                                     of the compiler's executable, for instance
                                     gcc-7 for GCC 7. In order to use LLVM's
                                     clang, use llvm_clang. To specify the
                                     Apple-provided clang, use clang. This
                                     parameter will only accept compilers that
                                     are provided by Homebrew or bundled with
                                     macOS. Please do not file issues if you
                                     encounter errors while using this flag.
    -s, --build-from-source          Compile the specified formula from source
                                     even if a bottle is provided. Dependencies
                                     will still be installed from bottles if
                                     they are available.
        --force-bottle               Install from a bottle if it exists for the
                                     current or newest version of macOS, even if
                                     it would not normally be used for
                                     installation.
        --include-test               Install testing dependencies required to
                                     run brew test.
        --devel                      If formula defines it, install the
                                     development version.
        --HEAD                       If formula defines it, install the HEAD
                                     version, aka. master, trunk, unstable.
        --fetch-HEAD                 Fetch the upstream repository to detect if
                                     the HEAD installation of the formula is
                                     outdated. Otherwise, the repository's HEAD
                                     will be checked for updates when a new
                                     stable or development version has been
                                     released.
        --keep-tmp                   Don't delete the temporary files created
                                     during installation.
        --build-bottle               Prepare the formula for eventual bottling
                                     during installation.
    -f, --force                      Install without checking for previously
                                     installed keg-only or non-migrated
                                     versions.
    -v, --verbose                    Print the verification and postinstall
                                     steps.
        --display-times              Print install times for each formula at the
                                     end of the run.
    -i, --interactive                Download and patch formula, then open a
                                     shell. This allows the user to run
                                     ./configure --help and otherwise
                                     determine how to turn the software package
                                     into a Homebrew package.
    -g, --git                        Create a Git repository, useful for
                                     creating patches to the software.
    -h, --help                       Show this message.
Error: invalid option: --with-orc
Installing gst-plugins-base has failed!
Installing gst-libav
Installing gst-plugins-bad
Installing gst-plugins-good
Installing gst-rtsp-server
Installing llvm
Installing yasm
Installing openssl@1.1
Homebrew Bundle failed! 1 Brewfile dependency failed to install.
```

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
  - I'm sorry but I couldn't confirm this because my Mac dosn't have enough RAM to build source code.
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because it doesn't includes changes of source code.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/22894)
<!-- Reviewable:end -->
2019-02-15 09:51:08 -05:00
Simon Sapin
28e3321e99 Get livelog keys from tc-secrets instead of worker type definition
… in scripts for deploying new Macstadium or Packet.net workers.

CC: https://bugzilla.mozilla.org/show_bug.cgi?id=1375182#c6
2019-02-15 15:33:22 +01:00
bors-servo
710271f070
Auto merge of #22844 - paulrouget:capi-header, r=SimonSapin
Generate simpleservo.h

Fix #22834

Waiting on https://github.com/eqrion/cbindgen/pull/271

<!-- 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/22844)
<!-- Reviewable:end -->
2019-02-15 05:39:37 -05:00
Paul Rouget
792ed8a566 Generate simpleservo.h 2019-02-15 08:54:20 +01:00
Yuichi Tanikawa
44cca2dea5 chore: remove Homebrew install arguments, which are enabled by default 2019-02-15 14:27:47 +09:00
bors-servo
7f2b8e606c
Auto merge of #22893 - servo-wpt-sync:wpt_update_14-02-2019, r=jdm
Sync WPT with upstream (14-02-2019)

Automated downstream sync of changes from upstream as of 14-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/22893)
<!-- Reviewable:end -->
2019-02-14 23:16:24 -05:00
WPT Sync Bot
a7e62acbe8 Update web-platform-tests to revision ad219567030d1f99f7310f52a17546b57b70d29e 2019-02-14 22:39:37 -05:00
bors-servo
2c63d1296b
Auto merge of #22886 - asajeffrey:webvr-embedder-can-register-vrservices, r=Manishearth
Allow the embedder to register their own VRServices

<!-- Please describe your changes on the following line: -->

Allow the servo embedder to register their own `VRService`s, not just the default ones.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #22878
- [X] These changes do not require tests because this is all plumbing

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/22886)
<!-- Reviewable:end -->
2019-02-14 09:37:27 -05:00
Alan Jeffrey
a062c40567 Allow the embedder to register their own VRServices 2019-02-14 08:36:03 -06:00
bors-servo
b65828d909
Auto merge of #22875 - servo-wpt-sync:wpt_update_12-02-2019, r=jdm
Sync WPT with upstream (12-02-2019)

Automated downstream sync of changes from upstream as of 12-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/22875)
<!-- Reviewable:end -->
2019-02-13 20:37:05 -05:00
Josh Matthews
7ce9afcc02
Update bluetooth expectations. 2019-02-13 20:36:50 -05:00
bors-servo
093a1ee365
Auto merge of #22872 - Manishearth:mediaup, r=asajeffrey
Update servo-media

Pulls in https://github.com/servo/media/pull/199, doesn't use it yet

<!-- 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/22872)
<!-- Reviewable:end -->
2019-02-13 13:05:11 -05:00
Manish Goregaokar
407d88f97d Update servo-media 2019-02-13 10:04:52 -08:00
WPT Sync Bot
4375e3f248 Update web-platform-tests to revision 5852f617c1ad109939bdb6b70f362dcd84a5cb73 2019-02-12 22:36:45 -05:00