Commit graph

29419 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
0714652d35
style: Remove another cfg'd import.
And a redundant assertion while at it.
2017-10-01 22:56:00 +02:00
Emilio Cobos Álvarez
5954e0a4ba
style: Remove conditional imports in traversal.rs 2017-10-01 22:55:50 +02:00
bors-servo
a2403c5cd6 Auto merge of #18693 - servo:rustup, r=nox
Upgrade to rustc 1.22.0-nightly (c6884b12d 2017-09-30)

A new `AddAssign` impl in the standard library made inference ambiguous.

<!-- 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/18693)
<!-- Reviewable:end -->
2017-10-01 09:46:05 -05:00
Simon Sapin
b6bfdc982d Upgrade to rustc 1.22.0-nightly (c6884b12d 2017-09-30)
A new `AddAssign` impl in the standard library made inference ambiguous.
2017-10-01 14:54:59 +02:00
bors-servo
65d9b345bb Auto merge of #18684 - mrobinson:reflow-goal, r=emilio
Combine ReflowGoal and ReflowQueryType

This simplifies the logic in the layout_thread and makes it clearer
which types of reflows generate display lists and cause display updates.

<!-- 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 shouldn't change behavior.

<!-- 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/18684)
<!-- Reviewable:end -->
2017-09-30 14:15:41 -05:00
bors-servo
b9e12ee666 Auto merge of #18681 - servo:c62, r=emilio
Reenable c62-percent-000.htm (fixes #7791)

This seems to pass fine now.

<!-- 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/18681)
<!-- Reviewable:end -->
2017-09-30 13:13:43 -05:00
bors-servo
2567c40829 Auto merge of #18680 - MortimerGoro:android_flavors, r=larsbergstrom
Implement Gradle flavors for Android VR compilations

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

This PR adds support to easily generate Android VR builds. Rust/Java VR dependencies are not added by default.

Default build (No VR support)
```
./mach build --release --android
./mach package --release --android
./mach install --release --android
```

GoogleVR builds (e.g. Daydream)
```
./mach build --release --android --features googlevr
./mach package --release --android --flavor googlevr
./mach install --release --android
```

OculusVR builds (e.g. Gear VR)
```
./mach build --release --android --features oculusvr
./mach package --release --android --flavor oculusvr
./mach install --release --android
```

---
<!-- 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/18680)
<!-- Reviewable:end -->
2017-09-30 12:17:37 -05:00
Martin Robinson
0380431157 Combine ReflowGoal and ReflowQueryType
This simplifies the logic in the layout_thread and makes it clearer
which types of reflows generate display lists and cause display updates.
2017-09-30 16:06:48 +02:00
bors-servo
75a4dcf293 Auto merge of #18679 - emilio:precomputed-custom-props, r=manishearth
style: Use PrecomputedHasher for custom properties.

<!-- 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/18679)
<!-- Reviewable:end -->
2017-09-30 07:36:04 -05:00
Emilio Cobos Álvarez
b7b22b76a8
style: Use PrecomputedHasher for custom properties. 2017-09-30 14:35:38 +02:00
Imanol Fernandez
e93130026a Implement Gradle flavors 2017-09-30 14:31:22 +02:00
Emilio Cobos Álvarez
497897ffc9
style: Update precomputed-hash. 2017-09-30 14:28:35 +02:00
Anthony Ramine
12023a7384 Reenable c62-percent-000.htm (fixes #7791)
This seems to pass fine now.
2017-09-30 12:04:09 +02:00
bors-servo
81044e0019 Auto merge of #18612 - servo:event-listener-options, r=asajeffrey
Implement EventListenerOptions for EventTarget

<!-- 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/18612)
<!-- Reviewable:end -->
2017-09-29 19:13:36 -05:00
Guillaume Gomez
3d0b7fbc41 Implement EventListenerOptions for EventTarget
For now, only "capture" is supported.
2017-09-30 02:12:35 +02:00
bors-servo
05f53d20e6 Auto merge of #18677 - mbrubeck:mach, r=jdm
mach: Don't overwrite RUSTFLAGS when enabling debug assertions

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/18677)
<!-- Reviewable:end -->
2017-09-29 13:51:41 -05:00
bors-servo
b2ee8d9ee8 Auto merge of #18678 - servo:DETERMINISTIC-ALL-THE-THINGS, r=jdm
Improve the media tests

This avoids a bunch of timeouts and make running the tests from `/html/semantics/embedded-content/media-elements/` in 25 seconds instead of 47 locally on my machine.
2017-09-29 12:23:52 -05:00
Anthony Ramine
b47331812a Properly fail in video_008.html 2017-09-29 19:16:37 +02:00
Anthony Ramine
622533ef48 Properly fail in readyState_during_playing.html 2017-09-29 19:10:08 +02:00
Anthony Ramine
d7d18fc239 Properly fail in readyState_during_loadedmetadata.html 2017-09-29 19:08:19 +02:00
Anthony Ramine
ce8fc063db Properly fail in readyState_during_loadeddata.html 2017-09-29 19:03:57 +02:00
Anthony Ramine
9856580e25 Properly fail in readyState_during_canplaythrough.html 2017-09-29 19:01:30 +02:00
Anthony Ramine
4ca5a05eed Properly fail in readyState_during_canplay.html 2017-09-29 18:59:37 +02:00
Anthony Ramine
d0020888a2 Properly fail in autoplay.html 2017-09-29 18:57:01 +02:00
Anthony Ramine
71e987951f Properly fail in paused_false_during_play.html 2017-09-29 18:53:34 +02:00
Anthony Ramine
6aa9d80a00 Properly fail in load-events-networkState.html 2017-09-29 18:53:32 +02:00
Anthony Ramine
b6e3faa317 Properly fail in autoplay-overrides-preload.html 2017-09-29 18:53:30 +02:00
Anthony Ramine
fb9d3bf350 Properly fail on error event in event_timeupdate_noautoplay.html
The tests still time out when the browser doesn't fire a timeupdate event
at all.
2017-09-29 18:53:27 +02:00
Anthony Ramine
c93b3d1639 Properly fail in event_progress_noautoplay.html 2017-09-29 18:53:21 +02:00
Matt Brubeck
c4aadfadae mach: Don't overwrite RUSTFLAGS when enabling debug assertions 2017-09-29 09:53:16 -07:00
Anthony Ramine
97adf791cd Properly fail in event_playing.html 2017-09-29 18:53:13 +02:00
Anthony Ramine
edd3824519 Properly fail in event_play.html 2017-09-29 18:53:10 +02:00
Anthony Ramine
4b2c4aead4 Properly fail in event_pause.html 2017-09-29 18:53:06 +02:00
Anthony Ramine
7b7f66f210 Properly fail in event_order_loadedmetadata_loadeddata.html 2017-09-29 17:58:16 +02:00
Anthony Ramine
60b5b77ccb Properly fail in event_order_canplay_playing.html 2017-09-29 17:55:31 +02:00
Anthony Ramine
026130094d Properly fail in event_order_canplay_canplaythrough.html 2017-09-29 17:12:29 +02:00
Anthony Ramine
59c56de103 Properly fail in event_loadedmetadata.html 2017-09-29 17:05:40 +02:00
bors-servo
9ffd2b8c9e Auto merge of #18604 - emilio:animated-value-cleanup, r=nox
style: Cleanup the animated value setup.

We have three different enums to represent slightly different things. Reuse them
properly, and kill some code in the animated_properties module while at it.

<!-- 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/18604)
<!-- Reviewable:end -->
2017-09-29 10:01:52 -05:00
Anthony Ramine
9f71ac9155 Properly use test() in networkState_during_progress.html 2017-09-29 16:58:44 +02:00
Anthony Ramine
2b64c3e6c0 Properly use test() in event_order_loadstart_progress.html 2017-09-29 16:55:11 +02:00
Anthony Ramine
7bab9caafd Properly use test() in event_progress.html 2017-09-29 16:51:55 +02:00
bors-servo
8732f6de69 Auto merge of #18675 - servo:DETERMINISTIC-ALL-THE-THINGS, r=bzbarsky
Make more media tests not timeout

<!-- 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/18675)
<!-- Reviewable:end -->
2017-09-29 08:38:51 -05:00
Anthony Ramine
37f5f52049 Properly fail in event_loadedmetadata_noautoplay.html 2017-09-29 15:37:10 +02:00
Anthony Ramine
7e06d2a1be Properly fail in event_loadeddata_noautoplay.html 2017-09-29 15:37:01 +02:00
Anthony Ramine
3185a7917e Fix some shortcomings in event_loadeddata.html
Variable 'v' was undefined in second test, and both tests were missing an onerror event handler.
2017-09-29 15:36:57 +02:00
Anthony Ramine
c0040b27fd Properly fail in event_canplaythrough_noautoplay.html 2017-09-29 15:30:04 +02:00
Anthony Ramine
8a3afe35fe Properly fail in event_canplaythrough.html 2017-09-29 15:29:02 +02:00
Anthony Ramine
4923045353 Properly fail in event_canplay_noautoplay.html 2017-09-29 15:28:03 +02:00
Anthony Ramine
bf3d6948c1 Properly fail in event_canplay.html 2017-09-29 15:27:12 +02:00
Anthony Ramine
0e56b79e78 Properly fail in /html/semantics/embedded-content/media-elements/error-codes/error.html 2017-09-29 14:25:13 +02:00