Commit graph

33893 commits

Author SHA1 Message Date
bors-servo
7c3e70110b
Auto merge of #21540 - AgustinCB:fix-readme-build-instructions, r=jdm
Fix setup instructions for Arch

base-devel contains the last version of autoconf. However, some
dependencies of the project rely on autoconf 2.13. Without this change,
the build fails with the following message:

```
ERROR: Could not find autoconf 2.13

--- stderr
ERROR: Could not find autoconf 2.13
make: *** [makefile.cargo:143: maybe-configure] Error 1
thread 'main' panicked at 'assertion failed: result.success()', build.rs:110:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
```

<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they just change documentation on how to build.

<!-- 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/21540)
<!-- Reviewable:end -->
2018-08-30 08:29:21 -04:00
Agustin Chiappe Berrini
6a574b2f56 Fix setup instructions for Arch
base-devel contains the last version of autoconf. However, some
dependencies of the project rely on autoconf 2.13. Without this change,
the build fails with the following message:

```
ERROR: Could not find autoconf 2.13

--- stderr
ERROR: Could not find autoconf 2.13
make: *** [makefile.cargo:143: maybe-configure] Error 1
thread 'main' panicked at 'assertion failed: result.success()', build.rs:110:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
```
2018-08-30 06:50:27 -04:00
bors-servo
05bdc656af
Auto merge of #21538 - kingdido999:master, r=jdm
Format components canvas and canvas_traits #21373

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

```bash
rustfmt components/canvas/**/*.rs
rustfmt components/canvas_traits/**/*.rs
```

<!-- 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/21538)
<!-- Reviewable:end -->
2018-08-30 00:27:34 -04:00
kingdido999
f472d05003 Format components canvas and canvas_traits #21373 2018-08-30 11:24:39 +08:00
bors-servo
2a4bee540c
Auto merge of #21515 - ferjm:gstreamer.windows.pkgconfig, r=nox
Update pkg-config to avoid setting LIBPATH to point to gstreamer deps…

… on Windows

I haven't tested locally, but AppVeyor will tell us if this works.

<!-- 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/21515)
<!-- Reviewable:end -->
2018-08-29 06:49:49 -04:00
Fernando Jiménez Moreno
c9e529c4fc Update pkg-config to not require LIBPATH to point to gst deps on Windows 2018-08-29 08:49:09 +02:00
bors-servo
8a2d4f3e17
Auto merge of #21532 - fabricedesre:update-x11, r=KiChjang
Update x11-dl to pickup the fix for x11 startup crash

This updates x11-dl to 2.18.3 to get https://github.com/erlepereira/x11-rs/issues/90

<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [X] These changes fix #21530 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it's fixing a startup crash

<!-- 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/21532)
<!-- Reviewable:end -->
2018-08-29 02:02:45 -04:00
Fabrice Desré
2282f4478b Update x11-dl to pickup the fix for https://github.com/erlepereira/x11-rs/issues/90 2018-08-28 08:30:01 -07:00
bors-servo
9e1ec1d5bb
Auto merge of #21529 - servo:rustup, r=nox
Upgrade to rustc 1.30.0-nightly (721913067 2018-08-26)

<!-- 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/21529)
<!-- Reviewable:end -->
2018-08-27 05:14:26 -04:00
Simon Sapin
a6dcfdcd55 Upgrade to rustc 1.30.0-nightly (721913067 2018-08-26) 2018-08-27 10:47:49 +02:00
bors-servo
5391cfc396
Auto merge of #21526 - servo-wpt-sync:wpt_update_26-08-2018, r=nox
Sync WPT with upstream (26-08-2018)

Automated downstream sync of changes from upstream as of 26-08-2018.
[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/21526)
<!-- Reviewable:end -->
2018-08-27 03:24:50 -04:00
WPT Sync Bot
394aced19f Update web-platform-tests to revision ab64b78a8f6777a1d95d8d1d4bba9ccdbecf94ea 2018-08-26 23:02:58 -04:00
bors-servo
da36740f0b
Auto merge of #21399 - gterzian:error_on_placeholder_load, r=jdm
Fire error when placeholder is loaded

<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #21397 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/21399)
<!-- Reviewable:end -->
2018-08-26 15:25:33 -04:00
Gregory Terzian
7b8d903d57 fire error when placeholder image is loaded 2018-08-26 19:06:16 +08:00
bors-servo
6b6fc7de92
Auto merge of #21519 - servo:webgl, r=<try>
Use sdk/tests when syncing from upstream Khronos WebGL tests

<!-- 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/21519)
<!-- Reviewable:end -->
2018-08-25 07:35:29 -04:00
Anthony Ramine
26a311fc62 Use sdk/tests when syncing from upstream Khronos WebGL tests 2018-08-25 13:34:53 +02:00
Anthony Ramine
4852f7d616 Move Khronos WebGL tests to /_webgl/ 2018-08-25 03:43:32 +02:00
bors-servo
f2306c8e19
Auto merge of #21516 - servo:bindgenup, r=SimonSapin
Update bindgen to 0.39.0

This fixes a build error for i686-linux-android with some versions of libclang:

```rust
error[E0560]: struct `generated::root::JS::Value` has no field named `__bindgen_align`sys
  --> /home/simon/projects/mozjs/src/jsval.rs:83:2
   |
83 |     __bindgen_align: [],
   |     ^^^^^^^^^^^^^^^ `generated::root::JS::Value` does not have this field
   |
   = note: available fields are: `data`

error: aborting due to previous error
```

<!-- 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/21516)
<!-- Reviewable:end -->
2018-08-24 20:50:44 -04:00
bors-servo
d827370804
Auto merge of #21502 - Manishearth:listener, r=ferjm
Add AudioListener/AudioPanner DOM interfaces

Seems to work.

I'll need some changes to the servo-media side to support the panner
node getters as well as the older `setPosition()`/etc APIs. I'll get to
those later.

r? @ferjm

<!-- 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/21502)
<!-- Reviewable:end -->
2018-08-24 19:13:05 -04:00
Manish Goregaokar
04e60e683a Update WPT expectations 2018-08-24 16:12:07 -07:00
Manish Goregaokar
5dd830344b Handle channel count constraints in panner constructor 2018-08-24 12:51:37 -07:00
Manish Goregaokar
58176c4148 Add some checks in PannerNode accessors 2018-08-24 12:51:37 -07:00
Manish Goregaokar
18960b6c94 Add PannerNode.setPosition(), setOrientation() 2018-08-24 12:22:19 -07:00
Manish Goregaokar
7daec55010 Add accessors for PannerNode 2018-08-24 12:22:19 -07:00
Manish Goregaokar
7d5b4b204c Add constraints for PannerNode 2018-08-24 12:22:19 -07:00
Manish Goregaokar
0f66f17001 Add HTML test 2018-08-24 12:22:19 -07:00
Manish Goregaokar
062c1d6071 Add BaseAudioContext.createPanner() 2018-08-24 12:22:19 -07:00
Manish Goregaokar
43ea9e0e4a cleanup: Remove Rc from BaseAudioContext 2018-08-24 12:22:19 -07:00
Manish Goregaokar
e4e01a6452 Add PannerNode DOM interface 2018-08-24 12:22:19 -07:00
Simon Sapin
bcc1b25fd9 Update bindgen to 0.39.0
This fixes a build error for i686-linux-android with some versions of libclang:

```
error[E0560]: struct `generated::root::JS::Value` has no field named `__bindgen_align`sys
  --> /home/simon/projects/mozjs/src/jsval.rs:83:2
   |
83 |     __bindgen_align: [],
   |     ^^^^^^^^^^^^^^^ `generated::root::JS::Value` does not have this field
   |
   = note: available fields are: `data`

error: aborting due to previous error
```
2018-08-24 20:22:27 +02:00
bors-servo
594f7b586b
Auto merge of #21514 - PsiACE:add-autoconf213-for-fedora, r=jdm
add autoconf213 for Fedora

add `autoconf213` to `dnf install`

- [x] These changes fix #21512
- [x] These changes do not require tests because it only change README.md

<!-- 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/21514)
<!-- Reviewable:end -->
2018-08-24 13:45:09 -04:00
Chojan Shang
62238d4eed
Update README.md
add `autoconf213` to `dnf install`
2018-08-25 01:14:31 +08:00
bors-servo
39551199c7
Auto merge of #21356 - servo:nll, r=jdm
Fix the build for NLL

Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build`

https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7

<!-- 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/21356)
<!-- Reviewable:end -->
2018-08-24 12:13:09 -04:00
Simon Sapin
1333b6ee45 Fix the build for NLL
Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build`

https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7
2018-08-24 17:49:58 +02:00
Simon Sapin
a9627d233f Update getopts
*Sigh* https://github.com/rust-lang-nursery/getopts/pull/53#issuecomment-415770100
2018-08-24 17:49:58 +02:00
Manish Goregaokar
9228ca3a02 Add AudioListener DOM interface 2018-08-24 08:33:22 -07:00
bors-servo
ee7947aeef
Auto merge of #21503 - servo-wpt-sync:wpt_update_23-08-2018, r=jdm
Sync WPT with upstream (23-08-2018)

Automated downstream sync of changes from upstream as of 23-08-2018.
[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/21503)
<!-- Reviewable:end -->
2018-08-24 09:05:35 -04:00
bors-servo
76dd6a4cdb
Auto merge of #21507 - servo:webgl, r=emilio
Update WebGL tests

There is in fact nothing to update because we use upstream's snapshots from `conformance-suites/`, we should consider syncing with `sdk/tests/` instead.

<!-- 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/21507)
<!-- Reviewable:end -->
2018-08-24 07:40:02 -04:00
Anthony Ramine
da4f170ad6 Update WebGL tests
Apparently unit2.patch wasn't correctly applied.
2018-08-24 13:15:06 +02:00
Anthony Ramine
d4eb6b196e Add newlines at the end of WebGL patches 2018-08-24 13:13:47 +02:00
Anthony Ramine
8582d18d2f Fix import-conformance-tests.py 2018-08-24 13:12:59 +02:00
WPT Sync Bot
ace02666c2 Update web-platform-tests to revision 34f9b93c2749043ba68485dea92d1fb554075e60 2018-08-23 23:42:32 -04:00
bors-servo
3d99288f20
Auto merge of #21500 - Manishearth:autoconf-readme, r=jdm
Include autoconf2.13 in readme

It's required by spidermonkey.

<!-- 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/21500)
<!-- Reviewable:end -->
2018-08-23 23:21:21 -04:00
bors-servo
8bb34243f5
Auto merge of #21499 - PsiACE:add-gstreamer-in-dnf-install, r=jdm
Update README.md

add `gstreamer` to `dnf install`

<!-- 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 not fix #21446, but help to compile.

<!-- Either: -->
- [x] There are tests for these changes OR
- [x] These changes do not require tests because it only change README.md

<!-- 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/21499)
<!-- Reviewable:end -->
2018-08-23 22:12:49 -04:00
bors-servo
54b387ab59
Auto merge of #21348 - pyfisch:only-webrender-items, r=jdm
Replace Servo DL items with WR ones

The Servo internal display list items are already pretty much
equivalent to the WebRender ones. Except that Servo items contain
base information and associated glyphs and gradient stops which are
stored implicitly in WebRender. Remove the display items for
rectangles, text, images, border, gradients and box shadow and
replace them with their WebRender counter parts.

Some more internal items like line, text shadow and iframe can definitively be replaced with WebRender equivalents but I think the PR is already quite huge. If WebRender would expose a quite minimal API which allowed servo to directly push items onto the display list most of webrender_helpers boilerplate code could go away. As WebRender performs normalization of gradients this would need to be called by servo explicitly in this case.

It should be noted that gradient borders don't actually work neither with the old version nor with this PR as the measurements are all set to zero.

Part of #19676

<!-- 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/21348)
<!-- Reviewable:end -->
2018-08-23 19:37:41 -04:00
Manish Goregaokar
4b48cfa3ec Upgrade to latest servo-media 2018-08-23 13:33:40 -07:00
Manish Goregaokar
66a9677538 Include autoconf2.13 in readme 2018-08-23 13:13:09 -07:00
bors-servo
fd64f11efe
Auto merge of #21494 - servo:selectors, r=SimonSapin
Publish selectors v0.20.0

Fixes #21455.

<!-- 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/21494)
<!-- Reviewable:end -->
2018-08-23 15:58:19 -04:00
Chojan Shang
68b582c8d7
Update README.md
add `gstreamer` to `dnf install`
2018-08-24 03:52:15 +08:00
Simon Sapin
df038d8343 Publish selectors v0.20.0 2018-08-23 20:43:06 +02:00