Commit graph

38351 commits

Author SHA1 Message Date
pylbrecht
7c81d20869 Implement create_gradient_stops() 2019-08-29 14:17:03 +02:00
pylbrecht
89b8bd516f Refactor Path::contains_point() using any() 2019-08-25 16:43:29 +02:00
pylbrecht
ee7f3dbc46 Implement PathBuilder::get_current_point() 2019-08-25 16:19:33 +02:00
pylbrecht
2a0be451ae Implement Path::contains_point() 2019-08-25 15:50:04 +02:00
bors-servo
b5e1b7dc48
Auto merge of #24045 - servo-wpt-sync:wpt_update_24-08-2019, r=servo-wpt-sync
Sync WPT with upstream (24-08-2019)

Automated downstream sync of changes from upstream as of 24-08-2019.
[no-wpt-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/24045)
<!-- Reviewable:end -->
2019-08-24 15:18:06 -04:00
bors-servo
e6fe8c63d4
Auto merge of #24043 - servo:rustup, r=jdm
Upgrade to rustc 1.39.0-nightly (9eae1fc0e 2019-08-23)

<!-- 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/24043)
<!-- Reviewable:end -->
2019-08-24 12:30:16 -04:00
WPT Sync Bot
57ea61dc86 Update web-platform-tests to revision 3bac98b37f29ec287e115fcecff566eb081131a8 2019-08-24 14:06:09 +00:00
bors-servo
dfabc33e06
Auto merge of #24040 - asajeffrey:magicleap-gstreamerup, r=jdm
Updated magicleap gtstreamer tarball

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

Updates the gstreamer library on magicleap.

---
<!-- 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 we don't test on devices

<!-- 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/24040)
<!-- Reviewable:end -->
2019-08-24 08:44:03 -04:00
Simon Sapin
439ee70bd1 Run rustfmt 2019-08-24 14:11:11 +02:00
Simon Sapin
714a5b4248 Upgrade to rustc 1.39.0-nightly (9eae1fc0e 2019-08-23) 2019-08-24 13:41:58 +02:00
bors-servo
6ff2524781
Auto merge of #24041 - asajeffrey:mach-iswindows-isfunction, r=jdm
In mach, add arguments to bare uses of is_windows

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

Replace bare uses of `is_windows` by `is_windows()` in mach.

---
<!-- 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 we don't test infra

<!-- 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/24041)
<!-- Reviewable:end -->
2019-08-24 02:42:54 -04:00
bors-servo
2fb324e174
Auto merge of #24039 - servo-wpt-sync:wpt_update_23-08-2019, r=servo-wpt-sync
Sync WPT with upstream (23-08-2019)

Automated downstream sync of changes from upstream as of 23-08-2019.
[no-wpt-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/24039)
<!-- Reviewable:end -->
2019-08-23 19:22:15 -04:00
bors-servo
6680f8aae0
Auto merge of #24030 - paulrouget:resize, r=jdm
Resize support

Depends on #24029

<!-- 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/24030)
<!-- Reviewable:end -->
2019-08-23 17:20:55 -04:00
Alan Jeffrey
1c661be721 In mach, add arguments to bare uses of is_windows 2019-08-23 11:54:46 -05:00
Alan Jeffrey
aae32cd6d4 Updated gtstreamer tarball 2019-08-23 11:49:26 -05:00
bors-servo
f21d116069
Auto merge of #24018 - Manishearth:wherever-you-are, r=asajeffrey
Allow setting near/far clip planes

needs https://github.com/servo/webxr/pull/41

r? @asajeffrey

<!-- 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/24018)
<!-- Reviewable:end -->
2019-08-23 11:45:38 -04:00
Manish Goregaokar
0d79b2beaf Allow setting near/far clip planes 2019-08-23 08:01:21 -07:00
WPT Sync Bot
482fda3a78 Update web-platform-tests to revision 33c263fb308d1c3f6ac6d2590d7292317262819d 2019-08-23 13:55:23 +00:00
bors-servo
5623ae468c
Auto merge of #23984 - servo:rustup, r=jdm
Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15)

<!-- 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/23984)
<!-- Reviewable:end -->
2019-08-23 08:14:05 -04:00
Paul Rouget
b2c56940eb Resize Servo on surface resize 2019-08-23 11:10:09 +02:00
Paul Rouget
10f86935b8 Support hidpi 2019-08-23 11:08:46 +02:00
Josh Matthews
203577cc82 Update mozjs to support new UWP rustc targets. 2019-08-23 08:23:21 +02:00
Simon Sapin
2130e6966a Android glue: don’t zero-init non-null function pointers
Fixes:

```rust
error: the type `android_injected_glue::ffi::android_app` does not permit zero-initialization
   --> ports/libsimpleservo/jniapi/src/lib.rs:511:46
    |
511 |     let mut app: ffi::android_app = unsafe { std::mem::zeroed() };
    |                                              ^^^^^^^^^^^^^^^^^^
    |                                              |
    |                                              this code causes undefined behavior when executed
    |                                              help: use `MaybeUninit<T>` instead
    |
    = note: `-D invalid-value` implied by `-D warnings`
note: Function pointers must be non-null (in this struct field)
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/android_injected_glue-0.2.3/src/ffi.rs:23:5
    |
23  |     pub onAppCmd: extern fn(*mut android_app, i32),
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
```
2019-08-23 08:23:21 +02:00
Simon Sapin
98e4a53b72 Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15) 2019-08-23 08:23:21 +02:00
bors-servo
5bf00c07c2
Auto merge of #24013 - paulrouget:gestureCapture, r=jdm
[hololens] Gesture capture

I can't reproduce #24010 but I think this should fix it.

Fix #24010

Depends on #24008

<!-- 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/24013)
<!-- Reviewable:end -->
2019-08-23 01:06:45 -04:00
bors-servo
8672ab5447
Auto merge of #23999 - paulrouget:missingCMethods, r=jdm
Missing C methods

Depends on #23983

Fix #23969

<!-- 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/23999)
<!-- Reviewable:end -->
2019-08-22 22:59:55 -04:00
bors-servo
cacd4ed4e2
Auto merge of #23997 - collares:audiobuffersourcenode, r=ferjm
Implement missing functionality of AudioBufferSourceNode

<!-- Please describe your changes on the following line: -->
This is a tiny PR to support [Media #293](https://github.com/servo/media/pull/293). Last time I ran WPT there was only one failing AudioBufferSourceNode test (which I will debug later this week). Once I rebased, however, I started getting unrelated servo-media build failures:

```
error[E0599]: no method named `shutdown_audio_context` found for type `std::sync::Arc<servo_media::ServoMedia>` in the current scope
   --> components/script/dom/baseaudiocontext.rs:566:14

error[E0599]: no method named `shutdown_player` found for type `std::sync::Arc<servo_media::ServoMedia>` in the current scope
    --> components/script/dom/htmlmediaelement.rs:1866:18
```

I wanted to get this PR up so https://github.com/servo/media/pull/293 can be tested. When the unrelated build failures are fixed, I will run `./mach update-wpt` and update this PR.

---
<!-- 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` only reports unrelated errors (broken servo/media master?)
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #22363

<!-- 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/23997)
<!-- Reviewable:end -->
2019-08-22 20:57:49 -04:00
bors-servo
ee9b3b3864
Auto merge of #23961 - angelortiz1007:servo-issue, r=jdm
Added support to download nuget and added python code to automate the…

… x64 and arm64 mach build -r/-d --uwp build process.

<!-- Please describe your changes on the following line: -->
Modified/added python code to:
1. Download nuget which is required for building support\HoloLens
2. added python code to perform a nuget install/restore ServoApp.sln which causes the Angle libraries to be installed so that mach build will succeed.
3. added python code to perform a MsBuild of the support\HoloLens\ServoApp.sln solution so that mach build will build ServoApp and create a ServoApp .appx install file.

Note: The Msbuild path must be present otherwise the msbuild command will fail.

---
<!-- 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 #23753 (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR
- [x] These changes do not require tests because by performing python mach build -r/-d --uwp ---win-arm64 or mach build -r/-d --uwp

<!-- 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/23961)
<!-- Reviewable:end -->
2019-08-22 16:54:13 -04:00
bors-servo
52b63b7088
Auto merge of #23998 - paulrouget:rmForget, r=jdm
Do not leak the CAPI strings

Depends on #23983

I haven't remove the mem::forget here: 6528c0d9b7/ports/libsimpleservo/capi/src/lib.rs (L228)

What would be the right approach in that specific case?

<!-- 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/23998)
<!-- Reviewable:end -->
2019-08-22 07:51:22 -04:00
Josh Matthews
57adaaaf18 Remove explicit nuget setup in CI. 2019-08-21 22:55:18 -07:00
bors-servo
d8a1c1e02e
Auto merge of #23936 - Eijebong:raqote, r=jdm
Implement the raqote backend

Rebased version of #23601 with some more stuff implemented. This passes some (not many) wpt tests.

<!-- 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/23936)
<!-- Reviewable:end -->
2019-08-22 01:45:40 -04:00
Paul Rouget
b642ff2057 Implement missing C callbacks 2019-08-22 07:43:12 +02:00
bors-servo
2a9b2fe027
Auto merge of #23947 - georgeroman:finish_json_clone_functionality, r=jdm
Finish the JSON clone algorithm for WebDriver

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

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

<!-- 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/23947)
<!-- Reviewable:end -->
2019-08-21 20:56:24 -04:00
Josh Matthews
c98878f833 Downgrade UWP app target platform. 2019-08-21 20:28:46 -04:00
Josh Matthews
dc6b1ae514 Add UWP build tools to CI images. 2019-08-21 20:28:41 -04:00
angelortiz1007
3dd1bfc317 Added support to download nuget and added python code to automate the x64 and arm64 mach build -r/-d --uwp build process. 2019-08-21 20:28:41 -04:00
Mauricio Collares
4d43f34bac webaudio: update wpt test expectations 2019-08-21 20:03:42 -03:00
Mauricio Collares
d3ff6e0463 webaudio: update servo-media revision 2019-08-21 20:03:42 -03:00
bors-servo
27764f6106
Auto merge of #24025 - jdm:uwp-ci, r=asajeffrey
Add x64 UWP to CI

This ensures that we're actually building the two most important configurations for our UWP work.

<!-- 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/24025)
<!-- Reviewable:end -->
2019-08-21 18:56:20 -04:00
Bastien Orivel
f829eaea03 Fix the build and tidy and address nits 2019-08-21 19:19:43 +02:00
Bastien Orivel
168a526221 Implement Source::Surface for FillOrStrokeStyle with raqote 2019-08-21 19:10:57 +02:00
Bastien Orivel
8a57876482 Implement get_format
Since raqote doesn't have multiple formats for its surfaces, this is a
noop to avoid crashing with the unimplemented
2019-08-21 19:10:57 +02:00
Bastien Orivel
dc78b6a989 Implement a few functions to make tests in draw-image and draw-path pass 2019-08-21 19:10:57 +02:00
Bastien Orivel
8cb8e7c627 WIP: Fix azure backend 2019-08-21 19:10:57 +02:00
Bastien Orivel
3dd0b462c2 Make tidy happy again 2019-08-21 19:10:57 +02:00
Bastien Orivel
0a3c6637bb Implement create_similar_draw_target 2019-08-21 19:10:57 +02:00
Bastien Orivel
4c73e4bb3f Imlplement get_composition_op 2019-08-21 19:10:57 +02:00
Bastien Orivel
a28d00013c Implement set_shadow_color, set_global_composition and stroke_rect 2019-08-21 19:10:57 +02:00
Bastien Orivel
a9fd26729b Match the azure backend regarding cap stuff
I think this is wrong because it won't respect cap style at all when
stroking lines but we'll cross that bridge when we get to it
2019-08-21 19:10:57 +02:00
Bastien Orivel
1dee418ff1 Set the line cap to butt when drawing a rect with a 0 width/height
Otherwise raqote will draw the cap even though it shouldn't because the
spec says so
2019-08-21 19:10:56 +02:00