Commit graph

41093 commits

Author SHA1 Message Date
Manish Goregaokar
242b7f8fdc Use FromJSValConvertible impls when converting arguments 2020-04-11 00:15:43 -07:00
Manish Goregaokar
10a13ffa20 Implement FromJSValConvertible on enums 2020-04-11 00:15:43 -07:00
bors-servo
37023b24f2
Auto merge of #26136 - asajeffrey:goodbye-webvr, r=Manishearth
Remove WebVR

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

Removes support for WebVR. WebXR is our future!

---
<!-- 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 do not require tests because how do you test

<!-- 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. -->
2020-04-08 23:02:50 -04:00
Alan Jeffrey
c611e46381 Remove WebVR 2020-04-08 20:23:41 -05:00
bors-servo
e691e42d58
Auto merge of #26152 - jdm:babylonfix, r=Manishearth
Fix missing Babylon.js content

Since the surfman upgrade work already merged to master on webxr, and this fix for Babylon.js content is extremely urgent, this change puts us temporarily on a branch that doesn't include the surfman upgrade.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26149
- [x] These changes do not require tests because there are no tests for the openxr backend.
2020-04-08 18:34:04 -04:00
Josh Matthews
a6323070d5 Update webxr to a branch that includes a fix for #26149. 2020-04-08 18:33:13 -04:00
bors-servo
5e91e48293
Auto merge of #26146 - jdm:xr-webgl2, r=Manishearth
Support WebGL2 contexts in immersive mode

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26138
2020-04-08 16:30:55 -04:00
bors-servo
e1dd0d9bca
Auto merge of #26140 - servo-wpt-sync:wpt_update_08-04-2020, r=jdm
Sync WPT with upstream (08-04-2020)

Automated downstream sync of changes from upstream as of 08-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-04-08 13:24:56 -04:00
Josh Matthews
c002a29582 Support WebGL2 contexts in XRWebGLLayer. 2020-04-08 12:52:01 -04:00
bors-servo
2128bf1e05
Auto merge of #26141 - paulrouget:cleanuwp, r=jdm
implement mach clean-uwp

Often it's necessary to cleanup the Visual Studio artifacts only. This makes it possible.
2020-04-08 12:10:15 -04:00
Josh Matthews
7dc59b9d76
Remove layout-2020 failure. 2020-04-08 10:21:34 -04:00
bors-servo
8912bdbc9d
Auto merge of #26133 - dralley:fix-motionmark, r=jdm
Update raqote

re: https://github.com/jrmuizel/raqote/issues/125
2020-04-08 09:07:37 -04:00
Paul Rouget
3efa840674 implement mach clean-uwp 2020-04-08 13:18:42 +02:00
WPT Sync Bot
19a2b8047d Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
Daniel Alley
376155b58e Update raqote 2020-04-07 23:08:42 -04:00
bors-servo
7b5ec99d25
Auto merge of #26135 - jdm:vertex_attrib_i4, r=jdm
Add initial support for VertexAttribI4* and VertexAttribIPointer

Add initial support for the WebGL2 `VertexAttribI4i`, `VertexAttribI4iv`, `VertexAttribI4ui`, `VertexAttribI4uiv` and `VertexAttribIPointer` calls.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26134 and fix #26123.
- [x] There are tests for these changes
2020-04-07 17:24:35 -04:00
Josh Matthews
66b2b3293d webgl: Fix active uniform block length check. 2020-04-07 16:16:05 -04:00
Istvan
62f00df79d Add initial support for VertexAttribI4*, VertexAttribIPointer
Adds initial support for the WebGL2 `VertexAttribI4i`, `VertexAttribI4iv`, `VertexAttribI4ui`, `VertexAttribI4uiv` and `VertexAttribIPointer` calls.
2020-04-07 15:01:39 -04:00
bors-servo
5a26190fc9
Auto merge of #26131 - servo-wpt-sync:wpt_update_07-04-2020, r=servo-wpt-sync
Sync WPT with upstream (07-04-2020)

Automated downstream sync of changes from upstream as of 07-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-04-07 12:52:44 -04:00
bors-servo
2002f490ef
Auto merge of #26130 - Manishearth:euclidup, r=nox
Update euclid

r? @nox @jdm
2020-04-07 11:51:38 -04:00
Manish Goregaokar
fccfff11c5 Update euclid 2020-04-07 08:51:08 -07:00
bors-servo
d8781c1054
Auto merge of #26120 - servo:layout-2020-non-opaque-style-data, r=SimonSapin
Remove postorder traversal from layout 2020 during styling
2020-04-07 10:38:16 -04:00
Anthony Ramine
c10e839924 Don't go through the layout thread to retrieve a node's primary style 2020-04-07 14:34:47 +02:00
bors-servo
95da6dbd6d
Auto merge of #26104 - tipowol:fix-23704, r=paulrouget
Update parse_length to match spec

<!-- 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 #23704
- [x] There are tests for these changes

<!-- 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. -->
2020-04-07 08:04:39 -04:00
WPT Sync Bot
7da408021a Update web-platform-tests to revision 5254eba7f17d10211b56c0d1958649bca29e8985 2020-04-07 10:45:43 +00:00
bors-servo
2eb7c8c080
Auto merge of #26127 - dralley:readme, r=jdm
Update README instructions for Fedora, remove Ubuntu 14.04 workarounds

Fedora 31+ doesn't have python2-virtualenv, so using Python 3 with ```mach```
is required. Fedora 30 will be EOL within the next 6 weeks.

Ubuntu 14.04 is no longer receiving upstream support: https://www.omgubuntu.co.uk/2019/04/ubuntu-14-04-end-of-life
2020-04-06 23:25:01 -04:00
bors-servo
f3aa7f7144
Auto merge of #26126 - dralley:fix-motionmark, r=jdm
Fix misspelled "get_suported_extensions" function

closes #21122
2020-04-06 20:31:29 -04:00
bors-servo
b944a6e281
Auto merge of #26124 - asajeffrey:readme-rustup-default-target, r=jdm
Add troubleshooting for rustup picking the wrong default toolchain

Add troubleshooting for rustup picking the wrong default toolchain.
2020-04-06 19:25:55 -04:00
bors-servo
8126c9d268
Auto merge of #26116 - tipowol:fix-26007, r=jdm
Add InRealm argument to Callback trait

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26007
- [x] There are tests for these changes
2020-04-06 18:15:49 -04:00
bors-servo
2fcd5fde0c
Auto merge of #26103 - utsavoza:ugo/issue-25646/03-04-2020, r=paulrouget
Extract user_agent from global opts and allow embedder to provide user agent string

<!-- 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 #25646
- [x] These changes do not require tests because these are refactoring changes and I'm assuming that existing tests cover these changes.

<!-- 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. -->
2020-04-06 17:58:24 -04:00
Anthony Ramine
030a1cf8fb Replace OpaqueStyleAndLayoutData by StyleAndOpaqueLayoutData 2020-04-06 23:06:13 +02:00
Daniel Alley
2b5e6df966 Update README instructions for Fedora, remove Ubuntu 14.04 workarounds
Fedora 31+ doesn't have python2-virtualenv, so using mach with Python 3
is required.

Ubuntu 14.04 is no longer receiving upstream support.
2020-04-06 14:06:17 -04:00
Daniel Alley
d0890db479 Fix misspelled "get_suported_extensions" function
closes #21122
2020-04-06 13:50:49 -04:00
Alan Jeffrey
21c3cea168 Add troubleshooting for rustup picking the wrong default toolchain 2020-04-06 11:23:03 -05:00
Utsav Oza
2c306227e9 Extract user_agent from global opts 2020-04-06 21:29:58 +05:30
bors-servo
50ea9fc02d
Auto merge of #26119 - servo-wpt-sync:wpt_update_06-04-2020, r=servo-wpt-sync
Sync WPT with upstream (06-04-2020)

Automated downstream sync of changes from upstream as of 06-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-04-06 11:04:16 -04:00
WPT Sync Bot
4e37dd1013 Update web-platform-tests to revision d7a573df46aac1ebc338ff993c54a18f2b9ff1a4 2020-04-06 10:41:55 +00:00
Anthony Ramine
88d79fe46d Remove postorder traversal from layout 2020 during styling 2020-04-06 12:40:05 +02:00
Anthony Ramine
e3be136c9b Rename a bunch of style/layout data items
GetLayoutData::get_style_and_layout_data becomes
GetOpaqueStyleAndLayoutData::get_opaque_style_and_layout_data.

GetRawData::get_raw_data becomes GetStyleAndLayoutData::get_style_and_layout_data.

LayoutNode::init_style_and_layout_data becomes
LayoutNode::init_opaque_style_and_layout_data.

LayoutNode::take_style_and_layout_data becomes
LayoutNode::take_opaque_style_and_layout_data.
2020-04-06 12:39:52 +02:00
bors-servo
3df65c02fe
Auto merge of #26113 - servo:layout-2020-rm-random-unsafe-removals-cause-i-am-bored, r=emilio
Drive-by refactoring of some unsafe code in stylo

Some stuff I found while thinking about other things between stylo and layout.

Third commit requires Gecko changes because I removed `From<u32>` for `FontLanguageOverride` and replaced it by the unsafe `FontLanguageOverride::from_u32` method.
2020-04-06 01:40:14 -04:00
Tipowol
8a3bf880e9 Add InRealm argument to Callback trait 2020-04-05 19:54:30 +02:00
bors-servo
1a6f08f698
Auto merge of #26115 - servo-wpt-sync:wpt_update_05-04-2020, r=servo-wpt-sync
Sync WPT with upstream (05-04-2020)

Automated downstream sync of changes from upstream as of 05-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-04-05 11:52:50 -04:00
bors-servo
ae49473c25
Auto merge of #26087 - gterzian:allow_service_workers_in_multiprocess, r=jdm
Fix ServiceWorker in multiprocess

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

FIX #15217
FIX #26100

---
<!-- 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. -->
2020-04-05 11:02:08 -04:00
Gregory Terzian
1e017a7082 allow for a service worker network mediator per origin 2020-04-05 22:43:37 +08:00
Gregory Terzian
db217d5575 allow for a service worker manager per origin 2020-04-05 22:43:40 +08:00
WPT Sync Bot
9bf4e63ec5 Update web-platform-tests to revision 1a83e795e53c50c1306a14a7bb8e3f7ccfa7f89f 2020-04-05 10:55:39 +00:00
bors-servo
406eefb4b1
Auto merge of #26109 - servo-wpt-sync:wpt_update_04-04-2020, r=servo-wpt-sync
Sync WPT with upstream (04-04-2020)

Automated downstream sync of changes from upstream as of 04-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-04-04 22:34:05 -04:00
Anthony Ramine
94ee8b34ca Rearrange FontLanguageOverride
Creating one from a u32 should be unsafe because we rely on the fact that the
value is a valid &str.
2020-04-05 01:20:39 +02:00
Anthony Ramine
e7cb736796 Replace ScopedTLS::unsafe_get by ScopedTLS::into_slots
We only ever look at the slots after we are done with the thread pool,
so we don't need to expose any unsafety to inspect the slots.
2020-04-05 01:20:39 +02:00
Anthony Ramine
5d6c5132c1 Don't use transmute to create PaintOrder values
I checked that rustc optimises the code just as well as with the transmute.

https://rust.godbolt.org/z/w6UJN4
2020-04-04 20:29:25 +02:00