Commit graph

31404 commits

Author SHA1 Message Date
Simon Sapin
27a2bb1582 Make script enable the "style/servo" Cargo feature
This enables it to be compiled without libservo:
```
cargo build --manifest-path components/script/Cargo.toml
```

… and then to be added to http://perf.rust-lang.org/
2017-11-02 15:02:55 +01:00
bors-servo
f946c4f00c Auto merge of #19097 - marmistrz:doc-python34, r=emilio
Mention that we need Python3 to build on CentOS

Mention that we need Python3 to build on CentOS

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because it's only docs

<!-- 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/19097)
<!-- Reviewable:end -->
2017-11-02 08:32:16 -05:00
Josh Matthews
28c20988f0 Remove all outdated CSS-related mach commands. 2017-11-02 09:22:30 -04:00
Josh Matthews
12d22f6bd2 Remove all outdated CSS tests. 2017-11-02 09:22:26 -04:00
Josh Matthews
00940911c5 Divide up CI jobs more evenly. 2017-11-02 09:22:01 -04:00
Josh Matthews
b8e44e14b2 Account for changes to Cargo.lock format. 2017-11-02 09:21:59 -04:00
Josh Matthews
b225b2bedb Update xml5ever to get better XHTML test results. 2017-11-02 09:21:58 -04:00
Marcin Mielniczuk
695faa8d88 Mention that we need Python3 to build on CentOS 2017-11-02 14:13:48 +01:00
bors-servo
e64083ccc6 Auto merge of #19096 - hsivonen:no-utf16-json, r=avadacatavra
Avoid decoding XHR type="json" responses as UTF-16BE/LE

https://infra.spec.whatwg.org/#parse-json-from-bytes says to use
"UTF-8 decode" rather than "decode", so UTF-16BE/LE BOM should
not be honored.

CC @SimonSapin

<!-- 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: -->
- [x] 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/19096)
<!-- Reviewable:end -->
2017-11-02 07:38:47 -05:00
Henri Sivonen
18a52ea0e9 Avoid decoding XHR type="json" responses as UTF-16BE/LE
https://infra.spec.whatwg.org/#parse-json-from-bytes says to use
"UTF-8 decode" rather than "decode", so UTF-16BE/LE BOM should
not be honored.
2017-11-02 14:28:51 +02:00
Imanol Fernandez
206b2287dd Update offscreen_gl_context in order to fix OSMesa context creation errors running webgl2 tests 2017-11-02 12:21:53 +01:00
Imanol Fernandez
07094641f2 Pull WebGL conformance 2.0.0 suite 2017-11-02 12:21:53 +01:00
Imanol Fernandez
90f657757f Add WebGL conformance 2.0.0 patches 2017-11-02 12:21:53 +01:00
bors-servo
edb2db55b7 Auto merge of #19093 - cbrewster:font_weight_cleanup, r=emilio
style: Cleanup font-weight parsing.

Followup for #19086

<!-- 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/19093)
<!-- Reviewable:end -->
2017-11-01 19:37:45 -05:00
bors-servo
cc53189e67 Auto merge of #19090 - emilio:useless-assert, r=bzbarsky
stylo: Remove useless assertions.

ElementStyles::primary expect()s.

<!-- 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/19090)
<!-- Reviewable:end -->
2017-11-01 18:00:50 -05:00
Josh Matthews
557e2d65b0 Use mach logging for single XHTML tests. 2017-11-01 18:22:37 -04:00
Josh Matthews
1b4bc29507 Disable multicol tests. 2017-11-01 18:22:36 -04:00
Josh Matthews
bf6d338c4b Remove old webgl test expectations. 2017-11-01 18:22:34 -04:00
Josh Matthews
8d182cb162 Update expected test results. 2017-11-01 18:22:31 -04:00
Connor Brewster
f37859375e style: Cleanup font-weight parsing. 2017-11-01 17:04:40 -05:00
bors-servo
fa319170eb Auto merge of #19077 - avadacatavra:floats-are-the-actual-worst, r=jdm
changed f64 to u64 for navigation start timing until it had to be float

<!-- 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 #18997 (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/19077)
<!-- Reviewable:end -->
2017-11-01 16:56:06 -05:00
ddh
0a09ee5cd8 changed f64 to u64 for navigation start timing until it had to be float 2017-11-01 20:45:22 +00:00
bors-servo
1e0fd7da30 Auto merge of #19086 - cbrewster:font_weight_nomako, r=emilio
style: Move font-weight outside of mako

<!-- 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 are apart of #19015 (github issue number if applicable).

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

<!-- 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/19086)
<!-- Reviewable:end -->
2017-11-01 15:12:59 -05:00
Emilio Cobos Álvarez
2d1790fe7d
stylo: Remove useless assertions.
ElementStyles::primary expect()s.
2017-11-01 19:49:24 +01:00
Connor Brewster
285d8bb58b style: Move font-weight outside of mako 2017-11-01 11:06:40 -05:00
bors-servo
b23131abf1 Auto merge of #19083 - servo:vis, r=SimonSapin
Fix new failure in Nightly 2017-11-01.

The rustc::declare_lints! macro started using a :vis fragment specifier.

<!-- 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/19083)
<!-- Reviewable:end -->
2017-11-01 08:52:45 -05:00
bors-servo
fa93a79ed0 Auto merge of #19082 - Eijebong:fixme_issue_718, r=jdm
Remove a workaround for https://github.com/rust-lang/rfcs/issues/718

<!-- 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/19082)
<!-- Reviewable:end -->
2017-11-01 07:57:04 -05:00
Simon Sapin
2bee740057 Fix new failure in Nightly 2017-11-01.
The rustc::declare_lints! macro started using a :vis fragment specifier.
2017-11-01 13:08:03 +01:00
Bastien Orivel
516857a15d Remove a workaround for https://github.com/rust-lang/rfcs/issues/718 2017-11-01 13:03:35 +01:00
bors-servo
994ff4b66e Auto merge of #19073 - servo:encoding-rs, r=SimonSapin
Use encoding-rs instead of rust-encoding

<!-- 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/19073)
<!-- Reviewable:end -->
2017-11-01 06:37:54 -05:00
Simon Sapin
a3971eb686 Replace rust-encoding with encoding-rs 2017-11-01 10:16:11 +01:00
bors-servo
77112b2b8e Auto merge of #19081 - glennw:update-subpx-win, r=metajack
Update WR (fixes subpixel text bug on Windows).

<!-- 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/19081)
<!-- Reviewable:end -->
2017-11-01 00:22:56 -05:00
Glenn Watson
ff3446d064 Update WR (fixes subpixel text bug on Windows). 2017-11-01 14:17:14 +10:00
bors-servo
dbaa5b22e6 Auto merge of #19078 - outkaj:master, r=KiChjang
Fixes #19063

This PR renames the unused variables mentioned in issue #19063.

- [X] `./mach build --release` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [x] These changes fix #19063

- [X] This change does not require a test because it is a relatively minimal change (? happy to make a test if it's helpful)

"Allow edits from maintainers" is checked.

<!-- 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/19078)
<!-- Reviewable:end -->
2017-10-31 22:48:18 -05:00
bors-servo
894957a837 Auto merge of #19079 - glennw:update-wr-scroll-fixes, r=KiChjang
Update WR (scroll fixes, text gamma fixes).

<!-- 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/19079)
<!-- Reviewable:end -->
2017-10-31 21:25:14 -05:00
Glenn Watson
b74dfb3c8e Update WR (scroll fixes, text gamma fixes). 2017-11-01 12:01:59 +10:00
bors-servo
c18f412ba3 Auto merge of #19076 - servo:alt-triples, r=mbrubeck
Check full triples for "alt" compiler support, not just platforms.

Fixes https://github.com/servo/servo/issues/19075
Fixes https://github.com/servo/servo/issues/18227

<!-- 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/19076)
<!-- Reviewable:end -->
2017-10-31 18:14:53 -05:00
Jacqueline Outka
ab81034922
Fixes #19063 2017-10-31 18:53:17 -04:00
bors-servo
63af764fc5 Auto merge of #19040 - MortimerGoro:webgl2_extensions, r=emilio
Add support for filtering WebGL extensions based on WebGL version

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

Add support for filtering WebGL extensions based on WebGL version

---
<!-- 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: -->
- [x] 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/19040)
<!-- Reviewable:end -->
2017-10-31 16:14:59 -05:00
Simon Sapin
93717356f1 Check full triples for "alt" compiler support, not just platforms.
Fixes https://github.com/servo/servo/issues/19075
2017-10-31 22:13:19 +01:00
Imanol Fernandez
f2f5817f56 Add support for filtering WebGL extensions based on WebGL version 2017-10-31 21:38:39 +01:00
Josh Matthews
15db457551 Duplicate existing CSS test metadata for newer testsuite. 2017-10-31 16:24:00 -04:00
bors-servo
c882266c89 Auto merge of #19074 - emilio:font-size-woes, r=Manishearth
style: Avoid double-applying text-zoom for keywords.

Bug: 1412743
Reviewed-by: Manishearth

<!-- 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/19074)
<!-- Reviewable:end -->
2017-10-31 15:08:24 -05:00
Emilio Cobos Álvarez
ed9cf6b4eb
style: Avoid double-applying text-zoom for keywords.
Bug: 1412743
Reviewed-by: Manishearth
2017-10-31 20:20:55 +01:00
bors-servo
a376382ed0 Auto merge of #19072 - emilio:bindgen-up-finally, r=xidorn
style: Update bindgen to 0.31.2.

Just waiting for a try run.

<!-- 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/19072)
<!-- Reviewable:end -->
2017-10-31 14:09:44 -05:00
Emilio Cobos Álvarez
4e6af723d8
style: Update bindings. 2017-10-31 20:09:20 +01:00
Emilio Cobos Álvarez
b721215a00
style: Update bindgen to 0.31.3.
Constified enums are default now. I think I want to introduce an option to
bindgen to allow setting the default enum behavior, but it doesn't need to block
this.

The ServoBindings.toml changes are somewhat hacky, but that's because of
https://github.com/rust-lang-nursery/rust-bindgen/issues/1125.

Also, the fixups now need to account for whitespace, since quote generates stuff
like root :: nsString, and we don't rustfmt the bindings if there's no rustfmt
installed.

Bug: 1412486
Reviewed-by: xidorn
MozReview-Commit-ID: EY5eNnCiTIw
2017-10-31 20:09:18 +01:00
Simon Sapin
3c36a36cc9 Use encoding-rs instead of rust-encoding for CSS parsing 2017-10-31 19:08:43 +01:00
Simon Sapin
a3ac21d23d Use the url crate without its query_encoding feature 2017-10-31 19:08:26 +01:00
Emilio Cobos Álvarez
b5f8edc4ae
style: Unconditionally implement Debug for RefPtr.
Bindgen doesn't know how to derive debug for a Gecko font family list. Hopefully
it doesn't need to.

Bug: 1412486
Reviewed-by: xidorn
MozReview-Commit-ID: 4iZKzjad6K9
2017-10-31 17:31:17 +01:00