Commit graph

30262 commits

Author SHA1 Message Date
Manish Goregaokar
dcefcc3c22
Add ToComputedValue and ToCss impls 2017-11-02 14:29:58 -07:00
Manish Goregaokar
337d48aa61
Add generic struct for transform 2017-11-02 14:29:57 -07:00
bors-servo
92b49010b1 Auto merge of #19091 - MortimerGoro:webgl2_suite, r=jdm
Add WebGL conformance 2.0.0 tests

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

This PR includes WebGL conformance 2.0.0 tests. For now I have disabled three folders in the new suite:
- `Conformance`: Tests WebGL 1.0 API like the current 1.0.3 suite we are using, but it includes a lot more tests and many expectations have to be updated. This is better to do in a separate PR because it will require to update github intermittent paths again and maybe detect new intermittents.
- `Conformance2\textures`: It causes a lot of timeouts because of using videos, svgs, and other complicated formats.
- `deqp`: It's a extra GPU testing suite included in the Khronos 2.0.0 suite. Disabled for now because it causes some timeouts.

So in a nutshell, it uses part of the 2.0.0 suite to test webgl 2.0 and keeps using 1.0.3 in order to test WebGL 1.0. It's good enough to enable TDD for the new WebGL 2.0 features

We can create follow-up issues for the next steps:
* deprecate 1.0.3 and use the new 'conformance' folder in 2.0.0 in order to test WebGL 1.0
* Enable `conformance2/textures` and  'deqp' tests once WebGL 2.0 implementation is more advanced or the timeouts are monitored in more detail.

---
<!-- 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/19091)
<!-- Reviewable:end -->
2017-11-02 15:52:42 -05:00
bors-servo
86b9e7d7d6 Auto merge of #19070 - jdm:csstests, r=metajack
Enable CSS tests.

Do not merge this; I'm looking into what it takes to stop running the test-css jobs.

<!-- 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/19070)
<!-- Reviewable:end -->
2017-11-02 11:35:01 -05:00
bors-servo
7f2ac4c559 Auto merge of #19098 - servo:minimal-plugin, r=jdm
Make the unrooted_must_root conditional on a default Cargo feature

Only http://perf.rust-lang.org/ will disable it, in order to be less subject to changes to rustc internal APIs.

<!-- 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/19098)
<!-- Reviewable:end -->
2017-11-02 09:28:13 -05:00
Imanol Fernandez
85494c770d Update manifest 2017-11-02 15:14:07 +01:00
Imanol Fernandez
ec1f61d9cc Add configuration for webgl2 tests and update test expectations 2017-11-02 15:12:35 +01:00
Simon Sapin
a5d9d0b32d Make the unrooted_must_root conditional on a default Cargo feature.
Only http://perf.rust-lang.org/ will disable it,
in order to be less subject to changes to rustc internal APIs.
2017-11-02 15:08:04 +01:00
Imanol Fernandez
c0a6f815c9 Fix "Tabs used for indentation" tidy erros with upstream Khronos 2.0.0 2017-11-02 15:06:00 +01:00
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