Commit graph

34153 commits

Author SHA1 Message Date
Anshul Malik
e68c938b99 format components/remutex 2018-09-12 12:37:11 +05:30
bors-servo
8c3b192466
Auto merge of #21672 - kingdido999:master, r=jdm
Format components metrics and msg #21373

```bash
rustfmt components/metrics/lib.rs
rustfmt components/msg/*.rs
rustfmt components/msg/tests/*.rs
```

<!-- 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/21672)
<!-- Reviewable:end -->
2018-09-12 01:52:08 -04:00
bors-servo
babed6c3c1
Auto merge of #21586 - Manishearth:gstreamer-bootstrap, r=jdm
Make bootstrap handle linux setup, include gstreamer, make bootstrap run standalone

Previously `./mach bootstrap` wasn't very useful on Linux, it would just install salt. This PR moves that to `./mach bootstrap-salt`, and has `./mach bootstrap` perform the installation steps mentioned in the README.

With these changes `./mach bootstrap` is a valid way of setting up the servo build. Additionally, this adds gstreamer setup to this for cases where gstreamer is not up to date.

Edit: And now, mach bootstrap is able to be run on a fresh system with just python installed (no need for virtualenv or libffi).

Fixes https://github.com/servo/servo/issues/21446 , fixes https://github.com/servo/servo/issues/21417

r? @jdm

<!-- 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/21586)
<!-- Reviewable:end -->
2018-09-12 00:56:29 -04:00
bors-servo
d3dcfd1131
Auto merge of #21679 - AnshulMalik:format-selectors, r=jdm
format components/selectors

Format with `rustfmt components/selectors/*.rs`
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- 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/21679)
<!-- Reviewable:end -->
2018-09-11 23:24:25 -04:00
bors-servo
704f7a06b1
Auto merge of #21681 - mbrubeck:deps, r=KiChjang
Switch from new-ordered-float back to ordered-float

The `new-ordered-float` fork has been merged back into the original `ordered-float` crate.

<!-- 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/21681)
<!-- Reviewable:end -->
2018-09-11 21:53:39 -04:00
bors-servo
030d797e33
Auto merge of #21676 - chansuke:format_ports_servo, r=jdm
Format ports/servo

<!-- Please describe your changes on the following line: -->
Format `ports/servo` with:

`rustfmt ports/servo/*.rs`

---
<!-- 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 part of #23137.
- [x] These changes do not require tests because they format the code only.

<!-- 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/21676)
<!-- Reviewable:end -->
2018-09-11 20:30:52 -04:00
bors-servo
b0f1805c9d
Auto merge of #21668 - jdm:wasm-tests, r=KiChjang
Enable wasm tests.

Now that we support WASM, we should avoid regressing that existing support and get a better idea about the pieces we're still missing.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [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/21668)
<!-- Reviewable:end -->
2018-09-11 16:48:18 -04:00
Anshul Malik
a28c642fc7 format components/selectors 2018-09-12 00:24:20 +05:30
bors-servo
9667298d29
Auto merge of #21528 - atouchet:tidy, r=jdm
Remove unused crates from servo-tidy

<!-- Please describe your changes on the following line: -->
Some of the crates listed in servo-tidy no longer appear to be used. Is it safe to remove these?

---
<!-- 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 #__ (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/21528)
<!-- Reviewable:end -->
2018-09-11 13:16:27 -04:00
Matt Brubeck
a77d05538b Switch from new-ordered-float back to ordered-float
The `new-ordered-float` fork has been merged back into the original
`ordered-float` crate.
2018-09-11 09:59:01 -07:00
Manish Goregaokar
2cc4e1dcdc mach package should work on android 2018-09-11 22:14:31 +05:30
Alex Touchet
025b5550fc
Merge branch 'master' into tidy 2018-09-11 09:06:42 -07:00
Manish Goregaokar
5d6701179c Bypass gstreamer check for test-wpt-android 2018-09-11 21:26:58 +05:30
Manish Goregaokar
0e252a179f ./mach package should respect target argument 2018-09-11 19:41:44 +05:30
Manish Goregaokar
4d7d63ea95 Hande systems without pkg-config 2018-09-11 19:34:38 +05:30
Manish Goregaokar
a380c5fd6e Don't try to load gstreamer on non-x86 2018-09-11 19:34:38 +05:30
Manish Goregaokar
d3ece2bc49 Review fixes 2018-09-11 19:34:38 +05:30
Manish Goregaokar
f270f3798d Comment on ./mach bootstrap 2018-09-11 19:34:38 +05:30
Manish Goregaokar
fc322182c4 Don't even try installing gstreamer on trusty 2018-09-11 19:34:38 +05:30
Manish Goregaokar
a2344b326f Additional fixes for compiling on trusty 2018-09-11 19:34:38 +05:30
Manish Goregaokar
6de148a7e5 Have bootstrap script install trusty g++/clang deps 2018-09-11 19:34:38 +05:30
Manish Goregaokar
10970be612 Note that trusty needs some extra deps 2018-09-11 19:34:38 +05:30
Manish Goregaokar
e72e08ea9c Allow bootstrap to be run before anything else is installed 2018-09-11 19:34:38 +05:30
Manish Goregaokar
6b75aa47cb Properly handle virtualenv 2018-09-11 19:34:38 +05:30
Manish Goregaokar
fcc06b5a16 Better error reporting for missing gstreamer 2018-09-11 19:34:38 +05:30
Manish Goregaokar
36797801e9 Allow WPT to be run with local gstreamer 2018-09-11 19:34:38 +05:30
Manish Goregaokar
eba68a1a49 Add mach bootstrap-gstreamer 2018-09-11 19:34:38 +05:30
Manish Goregaokar
1913ac706c Make ./mach bootstrap into a full-fledged linux dependency installer 2018-09-11 19:34:38 +05:30
Manish Goregaokar
11209c9fee Add gstreamer setup script; use 2018-09-11 19:34:38 +05:30
chansuke
bde84aed22 Format ports/servo 2018-09-11 23:00:41 +09:00
bors-servo
91ce5d805c
Auto merge of #21675 - chansuke:format_libsimpleservo, r=jdm
Format ports/libsimpleservo

<!-- Please describe your changes on the following line: -->
Format `ports/libsimpleservo` with:

`rustfmt ports/libsimpleservo/*.rs`

---
<!-- 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 part of #21373.
- [x] These changes do not require tests because they format code only.

<!-- 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/21675)
<!-- Reviewable:end -->
2018-09-11 09:56:11 -04:00
chansuke
0f90d985ac Format ports/libsimpleservo 2018-09-11 22:31:56 +09:00
bors-servo
049eb6887e
Auto merge of #21539 - ferjm:multichannel.audio.decoder, r=Manishearth
Add support for multichannel decoded audio

- [X] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [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/21539)
<!-- Reviewable:end -->
2018-09-11 08:41:25 -04:00
Fernando Jiménez Moreno
079b242657 Update WPT 2018-09-11 13:52:49 +02:00
Fernando Jiménez Moreno
7a09477d64 Add tidy exceptions for crossbeam-* 2018-09-11 11:49:35 +02:00
Fernando Jiménez Moreno
f423ede07f Add support for multichannel decoded audio 2018-09-11 10:38:56 +02:00
kingdido999
7f4ca21928 Format msg #21373 2018-09-11 15:04:55 +08:00
kingdido999
b3b188a6ff Format metrics #21373 2018-09-11 15:04:41 +08:00
bors-servo
b0ee750fba
Auto merge of #21660 - servo:webgl, r=jdm
Some more drive-by fixes for rgba8_image_to_tex_image_data

<!-- 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/21660)
<!-- Reviewable:end -->
2018-09-10 19:21:45 -04:00
bors-servo
795e7f6002
Auto merge of #21661 - chansuke:format_size_of_test, r=jdm
Format component size_of_test

<!-- Please describe your changes on the following line: -->
Format `components/size_of_test` by:
```
rustfmt components/size_of_test/*.rs
```
---
<!-- 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 part of #21373.
- [x] These changes do not require tests because they format code only.

<!-- 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/21661)
<!-- Reviewable:end -->
2018-09-10 17:12:06 -04:00
bors-servo
6cad3f4f40
Auto merge of #21657 - AnshulMalik:format-profile_traits, r=jdm
format components/profile_traits

Issue: #21373

<!-- 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/21657)
<!-- Reviewable:end -->
2018-09-10 15:25:58 -04:00
bors-servo
1127bcf69c
Auto merge of #21655 - kingdido999:master, r=jdm
Format jstraceable_derive #21373

```bash
rustfmt components/jstraceable_derive/*.rs
```

<!-- 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/21655)
<!-- Reviewable:end -->
2018-09-10 14:08:06 -04:00
bors-servo
948f0c9548
Auto merge of #21664 - chansuke:format_servo, r=jdm
Format component servo

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

`rustfmt components/servo/*.rs`

---
<!-- 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 part of #21373.
- [x] 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/21664)
<!-- Reviewable:end -->
2018-09-10 13:05:12 -04:00
Josh Matthews
4482ccc52d Enable wasm tests. 2018-09-10 12:46:24 -04:00
bors-servo
e122341a1d
Auto merge of #21651 - AnshulMalik:format-profile, r=jdm
format components/profile

Issue #21373

<!-- 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/21651)
<!-- Reviewable:end -->
2018-09-10 11:49:56 -04:00
chansuke
f2c9c3dc43 Format component servo 2018-09-11 00:47:01 +09:00
bors-servo
f37124563b
Auto merge of #21658 - paulrouget:loaduri, r=jdm
Save initial URI even for all loadUri methods

<!-- 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/21658)
<!-- Reviewable:end -->
2018-09-10 10:39:24 -04:00
bors-servo
78ad1df0b0
Auto merge of #21645 - AgustinCB:add-websocket-task-queue, r=jdm
Add Websocket task source

According to the doc: https://html.spec.whatwg.org/multipage/web-sockets.html#network

The task source for all tasks queued in the websocket section are the
websocket task source, so this commit also updates those references to
use the appropriate one.

Also, while working on this, I made a typo here: 5dd6e21c2e/components/script/dom/window.rs (L191)

Setting the name incorrectly. The error, however, was this:

```bash
error[E0412]: cannot find type `WebsocketEventTaskSource` in this scope
     --> components/script/dom/window.rs:171:1
       |
171 | #[dom_struct]
       | ^^^^^^^^^^^^^ did you mean `WebsocketTaskSource`?
```

Which isn't useful at all. Not sure if it's a rustc problem or something related with htis code base, but I thought it was worth mentioning.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21590
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they don't include new behavior and existing tests should cover this code.

<!-- 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/21645)
<!-- Reviewable:end -->
2018-09-10 09:11:44 -04:00
chansuke
52a11d8237 Format component size_of_test 2018-09-10 21:31:38 +09:00
Anthony Ramine
dac7740b8c Reuse input buffer for RGB/UNSIGNED_BYTE in rgba8_image_to_tex_image_data 2018-09-10 14:13:23 +02:00