Commit graph

20192 commits

Author SHA1 Message Date
bors-servo
84f3cf22bf Auto merge of #13185 - nox:namespaces, r=jdm,Ms2ger
Make console a namespace (fixes #13010)

<!-- 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/13185)
<!-- Reviewable:end -->
2016-09-10 07:33:25 -05:00
Anthony Ramine
2bc0862f47 Make console a namespace (fixes #13010) 2016-09-10 14:33:08 +02:00
bors-servo
5e7d918297 Auto merge of #13212 - Manishearth:resync, r=emilio
Handle None_ => None enum changes

Pulls in changes from https://bugzilla.mozilla.org/show_bug.cgi?id=1300337

r? @SimonSapin

don't mark for landing, I'll manually r= this when I do the next 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/13212)
<!-- Reviewable:end -->
2016-09-10 04:46:37 -05:00
bors-servo
0dd0e08de4 Auto merge of #13213 - Manishearth:mask, r=heycam
stylo: Implement mask longhands

Corresponding gecko bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1300731

r=heycam carries over from https://reviewboard.mozilla.org/r/76908/

Don't merge till that bug lands

<!-- 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/13213)
<!-- Reviewable:end -->
2016-09-10 03:34:17 -05:00
Manish Goregaokar
7138ad7d7e Bug 1300731 - stylo: Implement mask-image; r?heycam 2016-09-10 15:27:45 +08:00
Manish Goregaokar
075a430b99 Bug 1300731 - stylo: Glue for mask-position, reuse code between background and mask; r?heycam 2016-09-10 15:27:44 +08:00
Manish Goregaokar
76651171fb Bug 1300731 - stylo: Implement mask longhands (except mask-image), write glue for most; r?heycam 2016-09-10 15:27:43 +08:00
bors-servo
10777a8a8e Auto merge of #13215 - servo:pointless-clones, r=Manishearth
Use extend() rather than extend_from_slice() in constellation.

<!-- 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/13215)
<!-- Reviewable:end -->
2016-09-09 22:25:59 -05:00
bors-servo
b38d9cc3ad Auto merge of #13214 - shinglyu:gen_trace, r=SimonSapin
Create separate layout trace file for each reflow

<!-- Please describe your changes on the following line: -->
Currently only the layout trace from the last reflow is dumped to the file. But the interesting reflow may not be the last one. So we are dumping each of them with filename `layout_trace-{generation}.json`.

This will be used by a GUI viewer to visualize the layout process, which I will check-in later.

---
<!-- 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 its a minor debug tool

<!-- 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/13214)
<!-- Reviewable:end -->
2016-09-09 21:13:42 -05:00
bors-servo
b79401be31 Auto merge of #13211 - servo:FrameState-derive, r=ConnorGBrewster
Remove unused derivations from FrameState.

<!-- 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/13211)
<!-- Reviewable:end -->
2016-09-09 19:58:17 -05:00
bors-servo
1b3c7ed0ee Auto merge of #13201 - KiChjang:codegen-typedefs, r=nox
Properly generate typedef identities in unions

Fixes #10605.

<!-- 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/13201)
<!-- Reviewable:end -->
2016-09-09 18:45:56 -05:00
bors-servo
142578f2e9 Auto merge of #13094 - GuillaumeGomez:the_comeback, r=KiChjang
Put back video metadata

I updated the `video-metadata-rs` crate: now, no more ffmpeg, just pure rust. The webm format isn't checked 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/13094)
<!-- Reviewable:end -->
2016-09-09 16:28:34 -05:00
bors-servo
739e9ec519 Auto merge of #13220 - servo:jdm-patch-1, r=KiChjang
Disable build_009_to_016.html

<!-- 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/13220)
<!-- Reviewable:end -->
2016-09-09 15:32:44 -05:00
Josh Matthews
50f09f028b Disable build_009_to_016.html 2016-09-09 15:20:57 -04:00
bors-servo
14529148ce Auto merge of #13210 - servo:wpt-20160909, r=Ms2ger
Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0

<!-- 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/13210)
<!-- Reviewable:end -->
2016-09-09 09:30:17 -05:00
Ms2ger
079092dfea Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0 2016-09-09 16:17:14 +02:00
bors-servo
ca7cfdc89a Auto merge of #13216 - servo:jdm-patch-1, r=Ms2ger
Disable build_001_to_008.html

It's too frequent and therefore killing our velocity.

@bors-servo: r=100

<!-- 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/13216)
<!-- Reviewable:end -->
2016-09-09 08:33:10 -05:00
Josh Matthews
c68186b994 Disable build_001_to_008.html 2016-09-09 08:57:25 -04:00
Guillaume Gomez
94379bf715 Put back video metadata 2016-09-09 14:03:03 +02:00
Ms2ger
8ffa577df4 Use extend() rather than extend_from_slice() in constellation. 2016-09-09 11:43:57 +02:00
Shing Lyu
fc8731990c Create separate layout trace file for each reflow 2016-09-09 17:38:19 +08:00
bors-servo
1d40075f03 Auto merge of #13193 - servo:error-workers, r=nox
Implement error reporting for workers.

<!-- 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/13193)
<!-- Reviewable:end -->
2016-09-09 03:54:19 -05:00
Manish Goregaokar
3fe13a29f4
Handle None_ => None enum changes 2016-09-09 16:34:15 +08:00
Ms2ger
3147005547 Remove unused derivations from FrameState. 2016-09-09 10:09:29 +02:00
Ms2ger
3978359b43 Note the lacking support for muted errors. 2016-09-09 09:03:12 +02:00
Ms2ger
60142f87e2 Implement error reporting for workers.
Fixes #3311.
Fixes #13158.
2016-09-09 09:03:09 +02:00
Ms2ger
59cf735f85 Allow uncaught exceptions in worker runtime error tests. 2016-09-09 09:01:56 +02:00
bors-servo
957893bdc2 Auto merge of #13200 - Manishearth:resync, r=bholley
Resync bindings

StyleClear and StyleDisplay are now enums, updating bindings for them.

r? @bholley

<!-- 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/13200)
<!-- Reviewable:end -->
2016-09-09 02:00:13 -05:00
Manish Goregaokar
603c9439bb
Fix some warnings 2016-09-09 13:27:33 +08:00
Manish Goregaokar
0cf927801e Resync bindings 2016-09-09 12:25:54 +08:00
bors-servo
2d13178d29 Auto merge of #13192 - notriddle:master, r=pcwalton
Account for percentages in fixed table layout

Don't just use the minimum length all the time.

---

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #13166 (github issue number if applicable).
- [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/13192)
<!-- Reviewable:end -->
2016-09-08 23:17:06 -05:00
bors-servo
3117787fd2 Auto merge of #13205 - UK992:tidy-sort, r=Wafflespeanut
Tidy: Fix ordering use statements with braces

This hack fixes https://github.com/servo/servo/issues/7412 and matches behavior with rustfmt.

<!-- 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/13205)
<!-- Reviewable:end -->
2016-09-08 22:19:19 -05:00
UK992
93a103ba73 Reorder use statements 2016-09-09 04:55:19 +02:00
UK992
875981ece5 Fix ordering use statements with braces 2016-09-09 04:42:30 +02:00
bors-servo
5a5a76cc5d Auto merge of #13058 - malisas:malisa-responseAPI, r=Manishearth,jdm
Response API

<!-- Please describe your changes on the following line: -->
This PR adds the [dom::Response](https://fetch.spec.whatwg.org/#response-class) implementation and addresses #11896.

The relevant passing tests` expectations have been updated.

In order to allow non-UTF-8-encoded status messages, `net_traits::response::Response`'s `raw_status` field has been changed from type [`Option<RawStatus>`](https://doc.servo.org/hyper/http/struct.RawStatus.html) to type `Option<(u16, Vec<u8>)>`. As a result, a few other files which rely on the `raw_status` field were affected and updated.

TODOs:
- The `body` and `trailer` methods. Relies on implementation of `ReadableStream` and `Promise`s.
- Similarly, replace the dummy constructor `_body: Option<USVString>` argument with `body: ResponseBodyInit`.
- Currently, whenever `r's response's header list` or `r's Headers object` are mentioned, I always modify the `headers_reflector` field (of type dom::Headers, or `r's Headers object`) and not the corresponding hyper::Headers list in the net_traits::Response field. A completely accurate interpretation of the spec might consider making both of these lists the same thing via a reference. [Discussion](https://github.com/whatwg/fetch/issues/358) was [had](https://github.com/servo/servo/pull/12884).

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

<!-- 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/13058)
<!-- Reviewable:end -->
2016-09-08 18:58:05 -05:00
bors-servo
aa011ea275 Auto merge of #13175 - shinglyu:block-margin-patch, r=notriddle
Move collapse through margin to the top of block flow

<!-- Please describe your changes on the following line: -->
Based on the spec, a collapse through box should be put on the top edge of the flow. This fixed ~110 reftests

---
<!-- 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 #12824  (github issue number if applicable).

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

<!-- 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/13175)
<!-- Reviewable:end -->
2016-09-08 17:43:50 -05:00
bors-servo
d99d29e94a Auto merge of #13190 - servo:cssparser-up, r=Manishearth
Update cssparser

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

<!-- 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/13190)
<!-- Reviewable:end -->
2016-09-08 15:50:12 -05:00
bors-servo
0daf71d58b Auto merge of #13198 - glennw:wr-update-vtf, r=ConnorGBrewster
Update WR/shaders (more AA, VTF mac fix, reftest 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/13198)
<!-- Reviewable:end -->
2016-09-08 14:53:06 -05:00
bors-servo
daa30e60f1 Auto merge of #12916 - UK992:msvc-dependencies, r=larsbergstrom,wafflespeanut
Create `mach bootstrap` based on Mozilla's mozboot bootstrapper

Fixes https://github.com/servo/servo/issues/12914
I've made this few weeks ago, its an example how could everything looks like.
It downloads and setup all needed dependencies for MSVC.
It's has version in case if some dependencies need to be updated.
Zip files and folder in zip need to be named ``<dep>-<version>``.
Also if cmake already exist in PATH, it won't download it again.

I want opinion on that, if this is right approaches and how to improve it.

cc @vvuk

<!-- 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/12916)
<!-- Reviewable:end -->
2016-09-08 13:57:23 -05:00
Michael Howell
102ea5a7ae Change test expectation: floats-149 = PASS 2016-09-08 09:16:13 -07:00
bors-servo
b7eb277601 Auto merge of #13203 - servo:hide_layers, r=nox
Disable hide_layers2.html.

<!-- 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/13203)
<!-- Reviewable:end -->
2016-09-08 10:20:11 -05:00
Ms2ger
33da9e581f Disable hide_layers2.html. 2016-09-08 11:16:35 +02:00
Anthony Ramine
0b689a8a31 Implement WebIDL namespaces 2016-09-08 11:01:34 +02:00
Simon Sapin
45af168a5c Handle @namespace rules when parsing them rather than afterwards.
This will avoid dealing with DOMRefCell when we add it around NamespaceRule.
2016-09-08 10:21:03 +02:00
Keith Yeung
3976d974fc Properly generate typedef identities in unions 2016-09-07 21:48:46 -07:00
UK992
eff91be736 Update appveyor.yml 2016-09-07 22:45:08 +02:00
UK992
fc3555556c Create mach bootstrap based on Mozilla's mozboot bootstrapper 2016-09-07 22:45:05 +02:00
Glenn Watson
5a7004744a Update WR/shaders (more AA, VTF mac fix, reftest fixes). 2016-09-08 06:07:57 +10:00
bors-servo
5b0a1990d5 Auto merge of #13186 - andreastt:webdriver-0.14, r=SimonSapin,larsberg
Update webdriver-rust library to 0.14

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

This updates the _webdriver-rust_ library to 0.14 and makes the necessary API changes to make it compile with Servo.

---
<!-- 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 it is a library upgrade

<!-- 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/13186)
<!-- Reviewable:end -->
2016-09-07 12:57:24 -05:00
Michael Howell
516adfa6c9 Add reftest for #13166 2016-09-07 09:44:42 -07:00