Commit graph

36788 commits

Author SHA1 Message Date
WPT Sync Bot
faf92483da Update web-platform-tests to revision 2b66b8b24b727c7490bf6091dd8a6a551642720b 2019-02-18 22:40:08 -05:00
Steve Sweetney
02d3328d3c Implement HTMLMediaElement muted and defaultMuted attributes 2019-02-18 15:20:00 -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
Josh Matthews
256011a652 Add IME callback for embedders. 2019-02-12 17:48:42 -05:00
George Roman
74d6af94f6 Make blank target imply noopener 2019-02-12 19:46:37 +02:00
bors-servo
c80c3f3167
Auto merge of #22867 - servo-wpt-sync:wpt_update_11-02-2019, r=jdm
Sync WPT with upstream (11-02-2019)

Automated downstream sync of changes from upstream as of 11-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/22867)
<!-- Reviewable:end -->
2019-02-11 23:26:23 -05:00
WPT Sync Bot
8b66216ed2 Update web-platform-tests to revision e2eb25aaa6dd3c512b172588f3400f9c25a410c3 2019-02-11 22:35:08 -05:00
bors-servo
92369cca21
Auto merge of #22864 - emilio:gecko-sync, r=emilio
style: Rename MozLength to Size, and MaxLength to MaxSize.

MozLength is not a very descriptive name. If we're going to use it in both Gecko
and Servo we may as well name it something more accurate.

I would've chosen `ContentSize` per CSS2[1][2] if it wasn't a lie in presence
of box-sizing. I don't have better ideas than `Size`, given that.

[1]: https://drafts.csswg.org/css2/visudet.html#propdef-width
[2]: https://drafts.csswg.org/css2/box.html#content-width

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

<!-- 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/22864)
<!-- Reviewable:end -->
2019-02-11 20:28:35 -05:00
Emilio Cobos Álvarez
c2819365f0 style: Rename MozLength to Size, and MaxLength to MaxSize.
MozLength is not a very descriptive name. If we're going to use it in both Gecko
and Servo we may as well name it something more accurate.

I would've chosen `ContentSize` per CSS2[1][2] if it wasn't a lie in presence
of box-sizing. I don't have better ideas than `Size`, given that.

[1]: https://drafts.csswg.org/css2/visudet.html#propdef-width
[2]: https://drafts.csswg.org/css2/box.html#content-width

Differential Revision: https://phabricator.services.mozilla.com/D19280
2019-02-12 02:28:00 +01:00
bors-servo
3d4a416c6b
Auto merge of #21310 - jdm:canvas-path, r=pcwalton
Improve rendering of transformed 2d paths

This makes http://webglreport.com/ render correctly by porting the [equivalent code](https://searchfox.org/mozilla-central/rev/196560b95f191b48ff7cba7c2ba9237bba6b5b6a/dom/canvas/CanvasRenderingContext2D.h#847-875) from Gecko's 2d canvas implementation that handles paths with transformations. The first commit fixes the rendering issue, and the second commit fixes some new test failures that were exposed by that change.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21169
- [x] There are tests for these changes

<!-- 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/21310)
<!-- Reviewable:end -->
2019-02-11 14:41:19 -05:00
bors-servo
9358b6a2fb
Auto merge of #22841 - jdm:iframe-nav-test, r=nox
Add test for contentDocument behaviour during parsing

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #22503
- [x] There are tests for these changes

<!-- 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/22841)
<!-- Reviewable:end -->
2019-02-11 12:56:19 -05:00
bors-servo
1ec2de258d
Auto merge of #22798 - jdm:webgl-trace, r=nox
Report all messages processed by the webgl thread.

This might be useful for figuring out what a WebGL-based page is doing when it's not behaving correctly.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because they are debug-logging changes only.

<!-- 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/22798)
<!-- Reviewable:end -->
2019-02-11 11:39:12 -05:00
bors-servo
1d8f7574d8
Auto merge of #22863 - servo-wpt-sync:wpt_update_10-02-2019, r=jdm
Sync WPT with upstream (10-02-2019)

Automated downstream sync of changes from upstream as of 10-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/22863)
<!-- Reviewable:end -->
2019-02-11 09:42:27 -05:00
bors-servo
7ed6b9d3ce
Auto merge of #22850 - georgeroman:implement_htmlareaelement_target_attribute, r=ferjm
Implement the target attribute for HTMLAreaElement

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

---
<!-- 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 #22515

<!-- 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/22850)
<!-- Reviewable:end -->
2019-02-11 04:13:42 -05:00
George Roman
90b5d0d338 Implement the target attribute for HTMLAreaElement 2019-02-11 10:42:58 +02:00
Paul Rouget
38ed1fcf0f libsimpleservo: OpenGL support for Linux (glx) 2019-02-11 15:40:14 +08:00
WPT Sync Bot
bd408bae04 Update web-platform-tests to revision 48b9be82df0e5099393401a3f43ed9c8570832be 2019-02-10 23:17:02 -05:00
bors-servo
aeeaf9dda1
Auto merge of #22861 - emilio:gecko-sync, r=emilio
style: Sync changes from mozilla-central.

See each individual commit 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/22861)
<!-- Reviewable:end -->
2019-02-10 17:00:26 -05:00
bors-servo
a019ed1f80
Auto merge of #22860 - servo-wpt-sync:wpt_update_09-02-2019, r=jdm
Sync WPT with upstream (09-02-2019)

Automated downstream sync of changes from upstream as of 09-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/22860)
<!-- Reviewable:end -->
2019-02-10 15:48:56 -05:00
Emilio Cobos Álvarez
6daebcc5df Fix servo build. 2019-02-10 07:23:51 +01:00
Emilio Cobos Álvarez
1cb235c81a style: Call things by their name. 2019-02-10 07:11:47 +01:00
Emilio Cobos Álvarez
a68bc29b96 style: Derive more length stuff, and shrink MaxLength / MozLength's repr(C) representation.
This patch:

 * Makes LengthPercentageOrAuto generic, and removes a bunch of code fo
   LengthPercentageOrNone, which was used only for servo and now can use the
   normal MaxLength (with a cfg() guard for the ExtremumLength variant).

 * Shrinks MaxLength / MozLength's repr(C) reperesentation by reducing enum
   nesting. The shrinking is in preparation for using them from C++ too, though
   that'd be a different bug.

 * Moves NonNegative usage to the proper places so that stuff for them can be
   derived.

I did this on top of bug 1523071 to prove both that it could be possible and
that stuff wasn't too messy. It got a bit messy, but just because of a bug I
had fixed in bindgen long time ago already, so this updates bindgen's patch
version to grab a fix instead of ugly workarounds :)

Differential Revision: https://phabricator.services.mozilla.com/D17762
2019-02-10 07:11:46 +01:00
Emilio Cobos Álvarez
8dad956513 style: Use Rust lengths for margin / padding / inset.
Also for the intersection observer root margin, since it was easier to fix it
up and clean it up than not doing it.

This is the first big step to get rid of nscoord. It duplicates a bit of logic
in nsLayoutUtils since for now max/min-width/height are still represented with
nsStyleCoord, but I think I prefer to land this incrementally.

I didn't add helpers for the physical accessors of the style rect sides that
nsStyleSides has (top/bottom/left/right) since I think we generally should
encourage the logical versions, but let me know if you want me to do that.

Differential Revision: https://phabricator.services.mozilla.com/D17739
2019-02-10 05:12:19 +01:00
Emilio Cobos Álvarez
13e12d23f3 style: Use the style system's LengthPercentage for shape-margin.
This also makes us pass a few WPTs because we stop losing precision when
serializing the computed value.

Differential Revision: https://phabricator.services.mozilla.com/D17738
2019-02-10 05:12:11 +01:00
Emilio Cobos Álvarez
15f503d000 style: Add bindings for LengthPercentage, and use it for text-indent.
Which is the only property that uses LengthPercentage alone.

Differential Revision: https://phabricator.services.mozilla.com/D17737
2019-02-10 05:12:00 +01:00
Emilio Cobos Álvarez
207ff730c2 style: Cleanup a bit after bug 1525371.
Differential Revision: https://phabricator.services.mozilla.com/D19001
2019-02-10 05:11:49 +01:00
Emilio Cobos Álvarez
258217a369 style: Generate combined transform just once.
Differential Revision: https://phabricator.services.mozilla.com/D18567
2019-02-10 05:11:43 +01:00