Commit graph

39040 commits

Author SHA1 Message Date
Paul Rouget
70823e3032 Format CPP code with clang-format 2019-10-30 11:00:33 +01:00
bors-servo
de9c84f686
Auto merge of #24577 - paulrouget:transientThrobber, r=jdm
Add a loading indicator in transient mode

---
<!-- 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 #24549 (GitHub issue number if applicable)
2019-10-30 01:37:07 -04:00
bors-servo
c918b727f5
Auto merge of #24583 - jdm:angle-bbjs-fix, r=Manishearth
Fix GL panic with updated ANGLE

Our OES_texture_float extension implementation relied on the GL implementation to convert from unsized formats like RGBA when using the FLOAT/HALF_FLOAT type to an internal sized format that was acceptable. ANGLE no longer appears to do that since #24542, so we should enable the format conversion unconditionally.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24578
- [x] There are tests for these changes
2019-10-29 19:06:36 -04:00
Josh Matthews
c312646c24 webgl: Always convert float/half-float-based types to internal texture types. 2019-10-29 18:29:07 -04:00
bors-servo
571dc127a2
Auto merge of #24547 - paulrouget:click, r=jdm
UWP: better mouse interaction support
2019-10-29 13:46:53 -04:00
bors-servo
aa46cbd06a
Auto merge of #24544 - saschanaz:stringifier-attr, r=nox,jdm
Support IDL stringifier attributes

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

<!-- Either: -->
- [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. -->
2019-10-29 13:04:24 -04:00
Kagami Sascha Rosylight
691af0e98b Support stringifier attributes 2019-10-29 21:35:40 +09:00
Kagami Sascha Rosylight
97c01fc479 Update WebIDL.py 2019-10-29 21:34:53 +09:00
Paul Rouget
50929d7992 Add a loading indicator in transient mode 2019-10-29 08:25:50 +01:00
Paul Rouget
f2f8223cf1 UWP: better mouse interaction support 2019-10-29 07:35:50 +01:00
bors-servo
4ff24af3d5
Auto merge of #24572 - ferjm:vslogger.level, r=paulrouget
Allow setting Visual Studio logger level from cli arg

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
2019-10-29 02:18:55 -04:00
bors-servo
f78ca5794a
Auto merge of #24564 - paulrouget:initButtons, r=jdm
Properly set MouseEvent buttons property

Properly set MouseEvent buttons property. Same behavior as Chrome and Firefox.

---
<!-- 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 #24363 (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. -->
2019-10-29 00:57:40 -04:00
bors-servo
1b77e42d79
Auto merge of #24573 - teapotd:is-point-in-path-nan, r=jdm
Return false from CanvasState::is_point_in_path for NaN/infinite values

Servo doesn't pass WPT test `/2dcontext/path-objects/2d.path.isPointInPath.nonfinite.html` when built with raqote (see [here](https://github.com/servo/servo/pull/24470#issuecomment-546009000)).
This change adds a missing check for NaN/infinite values in `CanvasState::is_point_in_path` and fixes this.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #24540
- [X] These changes do not require tests because WPT tests cover it
2019-10-28 19:53:49 -04:00
bors-servo
6f4c6712cb
Auto merge of #24568 - servo-wpt-sync:wpt_update_28-10-2019, r=servo-wpt-sync
Sync WPT with upstream (28-10-2019)

Automated downstream sync of changes from upstream as of 28-10-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-10-28 16:05:39 -04:00
teapotd
35a48a7577 Return false from CanvasState::IsPointInPath for NaN/infinite values 2019-10-28 17:43:24 +01:00
Fernando Jimenez Moreno
e1b6719384 Allow setting Visual Studio logger level from cli arg 2019-10-28 17:29:20 +01:00
Paul Rouget
3a8d306281 Properly set MouseEvent buttons property 2019-10-28 17:11:45 +01:00
bors-servo
bb2c03a600
Auto merge of #24557 - servo:rustup, r=jdm
Upgrade to rustc 1.40.0-nightly (246be7e1a 2019-10-25)
2019-10-28 11:24:33 -04:00
WPT Sync Bot
9c6bf785bd Update web-platform-tests to revision cbd8c8ca929bc1aea71087be3b826cf1ee189a52 2019-10-28 14:07:02 +00:00
bors-servo
ac83c7f6b0
Auto merge of #24565 - tkeri:delete_func_comm, r=jdm
Delete superfluous comment
2019-10-28 08:19:54 -04:00
bors-servo
b052a1a020
Auto merge of #24542 - jdm:angle-up, r=paulrouget
Update UWP ANGLE to a modern version

The previous UWP ANGLE builds were made from https://github.com/servo/ms-angle/tree/servo-master which was based on an abandoned revision of ANGLE from >2 years ago. This is lacking some features that are necessary for https://github.com/servo/webxr/issues/46, so this is a new build produced from https://github.com/google/angle/ instead.

I've documented the process for releasing new ANGLE builds at https://github.com/servo/servo/wiki/Publishing-a-new-ANGLE-NuGet-version.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24199
- [x] These changes do not require tests because the windows testing situation is sad, and the UWP testing situation is sadder
2019-10-28 05:32:45 -04:00
Tamas Keri
e27b80aad5 Delete superfluous comment
Deleted unnecessary commit, because
the 'WebGLSampler' was implemented.
2019-10-28 10:15:25 +01:00
bors-servo
0c20fba2ab
Auto merge of #24546 - garasubo:refactor-submission, r=paulrouget
Re-add missing commit in PR #24489

Fix #22782

I'm sorry, but I failed to add one of commits during the squash phase in #24489.
Could you review and merge this?

---
<!-- 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
- [ ] 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. -->
2019-10-28 01:31:07 -04:00
bors-servo
9640ad1ccf
Auto merge of #24562 - mnem:fix-bootstrap-ubuntu-19.10, r=jdm
Update the maximum version of Ubuntu suppported to 19.10

Update bootstrap.py to allow it to run on Ubuntu 19.10

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

- [ ] There are tests for these changes OR
- [X] These changes do not require tests because there are no tests for bootstrap.py
2019-10-27 21:32:22 -04:00
David Wagner
9483442007 Update the maximum version of Ubuntu suppported to 19.10 2019-10-27 22:14:27 +00:00
Simon Sapin
6ba0fabc73 Taskcluster: install the rustc-dev rustup component, required for compiler plugins 2019-10-27 21:13:14 +01:00
bors-servo
2ad6e94091
Auto merge of #24525 - glowe:issue-23009/separate_angle_and_disable_vsync, r=jdm
Issue 23009/separate angle and disable vsync

The `--angle` and `--disable-vsync` options were declared as global options, but only used in the Glutin embedding for desktop builds. Moving them to the Glutin embedding code makes them easier to update in the future.

I modified `opts::from_cmdline_args` to accept a `getopts::Options` (as prescribed in the issue) and augmented `opts::ArgumentParsingResult` to include an `opts::Matches` and `content-process` String when appropriate. I could use some feedback on this last bit. I could have changed the function to return `opts::Matches` and have the embedding code look for the presence of `content-process`, but I felt that the approach I went with was closer to the original design.

The other aspect I'm not sure about is moving `disable-vsync` from a global debug option to a plain embedder option. This changes the command line interface for glutin, which is maybe bad. However I wasn't sure whether it was worth preserving the original behavior given the complexity of injecting debug options into `opts::from_cmdline_args`.

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes partially fix #23009 – there are 2 more options to deal with, but I'm not sure if we should handle them yet.
- [x] These changes do not require tests because this is a refactoring and I'm hoping that the existing tests cover these changes.

r? @jdm
2019-10-26 14:58:54 -04:00
glowe
0ee300479e Extract device_pixels_per_px from global opts
This is also an embedder specific option, so removing it from the
global options makes sense.
2019-10-26 12:00:14 -04:00
glowe
74f1e2ec32 Extract 3 more embedder options
Extracted clean-shutdown, msaa, and no-native-titlebar embedder
specific options out from the global options.

Partially fixes #23009
2019-10-26 11:34:36 -04:00
glowe
6eca38aea3 Make angle and disable-vsync embedder options
The angle and disable-vsync options were declared as global options but
only used in the Glutin embedding for desktop builds. Moving them to
the Glutin embedding code makes them easier to update.

Partially fixes #23009
2019-10-26 11:29:49 -04:00
glowe
24b8408916 Remove some global options access within glutin
Removed opts::get() access for the two glutin specific options: angle
and disable-vsync. This is the first step in a refactoring to separate
these two options from the global options.
2019-10-26 11:22:34 -04:00
Simon Sapin
d3439fb4d1 Upgrade to rustc 1.40.0-nightly (246be7e1a 2019-10-25) 2019-10-26 13:03:49 +02:00
Simon Sapin
642b8b0415 Move items at the root of the script crate to a module 2019-10-26 12:59:17 +02:00
bors-servo
c7c0bfdd8d
Auto merge of #24519 - hbina:cleanup_canvasrenderingcontext, r=jdm
Cleanup canvasrenderingcontext

<!-- 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 #24496
<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because it is purely a refactoring...so whatever tests we are already using now should suffice.

<!-- 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. -->
2019-10-25 21:50:26 -04:00
bors-servo
6a54d60043
Auto merge of #24555 - servo-wpt-sync:wpt_update_25-10-2019, r=servo-wpt-sync
Sync WPT with upstream (25-10-2019)

Automated downstream sync of changes from upstream as of 25-10-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-10-25 20:10:30 -04:00
bors-servo
45113a6e41
Auto merge of #24551 - nox:i-am-very-smart, r=SimonSapin
Fix a ridiculous bug in layout-2020

Who needs CI anyway?
2019-10-25 17:57:31 -04:00
bors-servo
2dddbadebf
Auto merge of #24550 - servo:rustup_, r=nox
Update html5ever and xml5ever

Pick up https://github.com/servo/html5ever/pull/402
2019-10-25 15:31:08 -04:00
bors-servo
60f9f7c75f
Auto merge of #24535 - servo:doctors-without, r=nox
2020: paint borders
2019-10-25 14:43:44 -04:00
Josh Matthews
d59fd0fb65 Update to ANGLE 2.1.15 nuget package. 2019-10-25 13:35:32 -04:00
bors-servo
9117e979b6
Auto merge of #24534 - ferjm:uwp.cli.args, r=paulrouget
Launch UWP app from command line

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

This PR makes it possible to launch the UWP app from the command line by executing (on any path) the `Servo` command. It requires building and launching Servo once on VS, so the command alias is properly registered.

It also allows passing command line arguments. So we can do for example `Servo --pref dom.webxr.enabled`.

Debugging is also possible when launching the app from the command line. It requires setting the `Launch Application` option (right click on `ServoApp (Universal Windows`) on the Solution Explorer view -> Properties ->  Configuration Properties -> Debugging) to `No`.
2019-10-25 10:02:32 -04:00
WPT Sync Bot
328d5a4231 Update web-platform-tests to revision 474923949524b5c05a9e6f28ec082fdca87078de 2019-10-25 13:27:26 +00:00
takumi
3af931004f Fix the condition to keep original logic
Address this PR comment: https://github.com/servo/servo/pull/24489/files#diff-30a18e04d7e0b66aafdf192e416cad44R1472
This commit was failed to add in PR #24489.

Issue: #22782
2019-10-25 22:17:25 +09:00
Anthony Ramine
327740d67a Fix a ridiculous bug in layout-2020
Who needs CI anyway?
2019-10-25 11:23:46 +02:00
Simon Sapin
533e2d69c6 Update html5ever and xml5ever
Pick up https://github.com/servo/html5ever/pull/402
2019-10-25 10:46:37 +02:00
bors-servo
b7b1b903d3
Auto merge of #24533 - servo:rustup, r=nox
Update smallvec

The old version fails to build with the `union` unstable feature on today’s Rust Nightly:

https://tools.taskcluster.net/groups/Mq9abu-VT4OA3-Vq0Pe3dQ/tasks/Ri2K_wPMQRak5Y108_wDpA/runs/0/logs/public%2Flogs%2Flive.log#L1324
2019-10-25 04:25:14 -04:00
Hanif Bin Ariffin
31ff2d43cc Moved CanvasState out of canvasrenderingcontext
Cleaned up imports...

Applied clang-tidy

Moved CanvasState  and some other files

Next commit should remove pub modifier from members of CanvasState and use getters/setters instead.

Members of CanvasState are now private and applied test-tidy

Now have getters that return an immutable reference.
Also, I have no idea what to name some_func.rs

Removed need for some_func and made pub(crate)
2019-10-25 02:27:57 -04:00
bors-servo
273fe590db
Auto merge of #24539 - servo-wpt-sync:wpt_update_24-10-2019, r=servo-wpt-sync
Sync WPT with upstream (24-10-2019)

Automated downstream sync of changes from upstream as of 24-10-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-10-24 22:46:50 -04:00
bors-servo
07abea0707
Auto merge of #24531 - teapotd:referer-length-limit, r=nox
Limit the referer header's value length to 4096

If the referer header's value is a URL with a length of more than 4k, strip it down to an origin.
This change reflects [w3c/webappsec-referrer-policy#122](https://github.com/w3c/webappsec-referrer-policy/pull/122)

---
<!-- 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 #24515
- [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. -->
2019-10-24 16:18:50 -04:00
teapotd
c54df2b965 Limit referer header value length to 4096 2019-10-24 20:59:00 +02:00
WPT Sync Bot
145699ccd0 Update web-platform-tests to revision d2f5658cb7f7806b2c6adf81ecb7ded82fb85df5 2019-10-24 15:48:44 +00:00