Commit graph

41591 commits

Author SHA1 Message Date
Josh Matthews
7151ee25c8 webgl: Reject incompatible 2d texture pixel data based on texture data type. 2020-05-13 16:22:31 -04:00
Josh Matthews
3abaff85f3 webgl: Mark float/half-float textures as filterable in webgl2. 2020-05-13 14:15:41 -04:00
bors-servo
887d5f9417
Auto merge of #26505 - servo:dependabot/cargo/backtrace-0.3.47, r=jdm
Bump backtrace from 0.3.46 to 0.3.47

Bumps [backtrace](https://github.com/rust-lang/backtrace-rs) from 0.3.46 to 0.3.47.
<details>
<summary>Commits</summary>
<ul>
<li><a href="fbcfd0eaae"><code>fbcfd0e</code></a> Bump to 0.3.47</li>
<li><a href="5ad0b762eb"><code>5ad0b76</code></a> Switch to <code>gimli-symbolize</code> by default (<a href="https://github-redirect.dependabot.com/rust-lang/backtrace-rs/issues/324">#324</a>)</li>
<li><a href="bb5aa64804"><code>bb5aa64</code></a> Enable gimli on all platforms</li>
<li><a href="67ccecbca4"><code>67ccecb</code></a> Update comments in <code>Cargo.toml</code></li>
<li><a href="29af39088b"><code>29af390</code></a> Automatically enable <code>std</code> feature with <code>gimli-symbolize</code></li>
<li><a href="3af3ec7db5"><code>3af3ec7</code></a> Tweak some CI testing</li>
<li><a href="40f3954554"><code>40f3954</code></a> Migrate towards sunsetting features on this crate (<a href="https://github-redirect.dependabot.com/rust-lang/backtrace-rs/issues/323">#323</a>)</li>
<li><a href="7a95a02c8e"><code>7a95a02</code></a> Reorganize gimli internals slightly (<a href="https://github-redirect.dependabot.com/rust-lang/backtrace-rs/issues/322">#322</a>)</li>
<li><a href="301358d42a"><code>301358d</code></a> Update <code>addr2line</code> dependency (<a href="https://github-redirect.dependabot.com/rust-lang/backtrace-rs/issues/321">#321</a>)</li>
<li><a href="1ffdc8ae1c"><code>1ffdc8a</code></a> Remove dladdr fallback and implementation (<a href="https://github-redirect.dependabot.com/rust-lang/backtrace-rs/issues/317">#317</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/rust-lang/backtrace-rs/compare/0.3.46...0.3.47">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=backtrace&package-manager=cargo&previous-version=0.3.46&new-version=0.3.47)](https://dependabot.com/compatibility-score/?dependency-name=backtrace&package-manager=cargo&previous-version=0.3.46&new-version=0.3.47)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

</details>
2020-05-13 09:17:22 -04:00
bors-servo
c01f22d311
Auto merge of #26507 - servo-wpt-sync:wpt_update_13-05-2020, r=servo-wpt-sync
Sync WPT with upstream (13-05-2020)

Automated downstream sync of changes from upstream as of 13-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-13 07:07:06 -04:00
WPT Sync Bot
ab5c81c0bb Update web-platform-tests to revision 85ffed21f7a96f6d67a5a0110459d67f50cff624 2020-05-13 11:06:53 +00:00
bors-servo
0fc2155a02
Auto merge of #26496 - mrobinson:remove-animated-property, r=emilio
Remove AnimatedProperty

This removes an extra layer of abstraction and allows Servo to share
more code with Gecko. In addition, we will need to handle raw
`AnimationValue` structs soon in order to fully implement "faster
reversing of interrupted transitions."

<!-- 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] 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-05-13 05:46:02 -04:00
Martin Robinson
0f1831e2fa Remove AnimatedProperty
This removes an extra layer of abstraction and allows Servo to share
more code with Gecko. In addition, we will need to handle raw
`AnimationValue` structs soon in order to fully implement "faster
reversing of interrupted transitions."
2020-05-13 11:02:52 +02:00
dependabot-preview[bot]
28e8ca010b
Bump backtrace from 0.3.46 to 0.3.47
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs) from 0.3.46 to 0.3.47.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases)
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.46...0.3.47)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-13 08:37:20 +00:00
bors-servo
bdfa6b0751
Auto merge of #26458 - Manishearth:secondary-view, r=asajeffrey
Update webxr with secondary view support

Blocked on https://github.com/servo/webxr/pull/171 , untested
2020-05-12 21:39:50 -04:00
Manish Goregaokar
da3d2a8eff Handle StereoCapture in GetViewport() 2020-05-12 17:40:19 -07:00
Manish Goregaokar
b181e0c8ff Update webxr to support secondary capture view 2020-05-12 17:40:19 -07:00
bors-servo
d96accc27f
Auto merge of #26495 - servo:jdm-patch-41, r=SimonSapin
Fix reftest report regression.

Fixes #26467.
2020-05-12 18:30:27 -04:00
bors-servo
66b81d51dc
Auto merge of #26430 - Eijebong:referrer-policy, r=jdm
Implement referrer policy

Fixes #26270
2020-05-12 17:37:53 -04:00
bors-servo
bd6100be03
Auto merge of #26476 - jdm:xr-emulator-surfman, r=Manishearth
Use an appropriate graphics adapter when openxr is present.

The surfman upgrade broke our fragile process of choosing a graphics adapter that is always compatible with openxr. These changes ensure that won't happen in the future.

Depends on https://github.com/servo/webxr/pull/174.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26474
- [x] These changes do not require tests because we can't test the emulator configuration
2020-05-12 16:40:06 -04:00
bors-servo
ea4ae04655
Auto merge of #26335 - jdm:wrup, r=SimonSapin
Update webrender.
2020-05-12 14:56:19 -04:00
Josh Matthews
af05da574b Use new webrender rounded clip API. 2020-05-12 14:43:41 -04:00
Josh Matthews
cacefbad17 Use an appropriate graphics adapter when openxr is present. 2020-05-12 14:18:17 -04:00
bors-servo
e26e864c61
Auto merge of #26487 - pylbrecht:update.raqote, r=jdm
Fix radial gradients for html canvas element

<!-- Please describe your changes on the following line: -->
The latest version of raqote provides a fix for properly handling boundary conditions for TwoCircleRadialGradients.

---
<!-- 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 part of #25331

<!-- 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. -->
2020-05-12 13:57:10 -04:00
Josh Matthews
ea6523ef62
Fix reference report regression. 2020-05-12 11:40:51 -04:00
bors-servo
44ac62ddda
Auto merge of #26492 - servo-wpt-sync:wpt_update_12-05-2020, r=jdm
Sync WPT with upstream (12-05-2020)

Automated downstream sync of changes from upstream as of 12-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-12 11:14:12 -04:00
Josh Matthews
bba2e43f97 Update 2020 results for outline-width animation. 2020-05-12 10:51:45 -04:00
Josh Matthews
9ecf7c0f51
Add outline-width parsing failure. 2020-05-12 10:44:49 -04:00
Josh Matthews
a9ac01a5de
Remove intermittent crash. 2020-05-12 10:42:01 -04:00
Josh Matthews
5261140293
Remove intermittent crash. 2020-05-12 10:41:46 -04:00
WPT Sync Bot
fb0507d174 Update web-platform-tests to revision a49081e46a18e439defbd77d18cc5e261d68b215 2020-05-12 11:19:00 +00:00
bors-servo
c5617efff0
Auto merge of #26464 - mrobinson:move-animations-to-script, r=jdm
Move most animation processing to script

This is preparation for sharing this code with layout_2020 and
implementing selective off-the-main-thread animations.

We still look for nodes not in the flow tree in the layout thread.

<!-- 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 do not require tests because they should not 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. -->
2020-05-12 07:08:50 -04:00
Martin Robinson
3b0619aedd Move most animation processing to script
This is preparation for sharing this code with layout_2020 and
implementing selective off-the-main-thread animations.

We still look for nodes not in the flow tree in the layout thread.
2020-05-12 10:22:14 +02:00
Josh Matthews
eb2f7f7f0a Convert all uses of UpdateResources api to use webrender transactions. 2020-05-11 17:41:56 -04:00
Josh Matthews
8842250033 Update webrender. 2020-05-11 17:41:56 -04:00
bors-servo
aa9f16ce45
Auto merge of #26477 - mrobinson:layout-2020-get-computed-value, r=jdm
Add support for getComputedStyle() to layout_2020

These changes add support for `getComputedStyle()` to layout_2020.

---
<!-- 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] 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-05-11 15:57:25 -04:00
Martin Robinson
9c7b1ae715 layout_2020: Add initial support for getComputedStyle
This implementation is more-or-less on par with the one from layout_2013
and in some cases better. There are still some cases where we don't
return the correct "resolved value," but this is enough to test
animations and transitions.
2020-05-11 20:14:01 +02:00
bors-servo
41367b01bb
Auto merge of #26485 - mrobinson:layout-2020-transform-style, r=SimonSapin
layout_2020: Add support for transform-style

This requires creating a matching stacking context for every reference
frame and also properly placing those stacking contexts inside them.

<!-- 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] 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-05-11 13:25:01 -04:00
bors-servo
252197b04a
Auto merge of #26483 - splav:ext_frag_depth, r=jdm
Implement EXT_frag_depth

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

---
<!-- 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 #26341 (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-05-11 12:28:14 -04:00
pylbrecht
e64c49036e Update test expectations 2020-05-11 18:23:54 +02:00
pylbrecht
e611b15a4c Update package "raqote" 2020-05-11 16:16:26 +02:00
Martin Robinson
a637810df3 layout_2020: Add support for transform-style
This requires creating a matching stacking context for every reference
frame and also properly placing those stacking contexts inside them.
2020-05-11 15:03:29 +02:00
Alexandrov Sergey
50e15486b6 Implement EXT_frag_depth 2020-05-11 11:51:04 +03:00
bors-servo
4d541e8e38
Auto merge of #26481 - mrobinson:remove-fixme, r=jdm
Remove a TODO from the implementation of getComputedStyle

The spec is now clear that disconnected elements shouldn't return a
style.

Closes #6860.

<!-- 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 #6860
- [x] These changes do not require tests because they just update a comment.

<!-- 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-05-10 08:40:07 -04:00
bors-servo
d20b7b9626
Auto merge of #26482 - servo-wpt-sync:wpt_update_10-05-2020, r=servo-wpt-sync
Sync WPT with upstream (10-05-2020)

Automated downstream sync of changes from upstream as of 10-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-10 07:17:37 -04:00
WPT Sync Bot
354984b2bf Update web-platform-tests to revision 46b884903ba0153b2cd9d932504f6b88f57614cf 2020-05-10 11:17:26 +00:00
Martin Robinson
4b4ea6483a Remove a TODO from the implementation of getComputedStyle
The spec is now clear that disconnected elements shouldn't return a
style.

Closes #6860.
2020-05-10 11:05:01 +02:00
bors-servo
75fce11335
Auto merge of #26478 - servo-wpt-sync:wpt_update_09-05-2020, r=servo-wpt-sync
Sync WPT with upstream (09-05-2020)

Automated downstream sync of changes from upstream as of 09-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-09 07:10:58 -04:00
WPT Sync Bot
f05c813634 Update web-platform-tests to revision 3a7b40eb73bf5359adf0d378b71d36488885057f 2020-05-09 11:10:45 +00:00
bors-servo
536c60afe1
Auto merge of #26475 - CYBAI:fix-none-location-redirect, r=jdm
Initiate redirect fetching iff the request has a location

Without this checking, we will run into a TIMEOUT request because
http_redirect_fetch will return immediately when location doesn't exist.

---
<!-- 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 partially fix #25606
- [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-05-08 23:42:07 -04:00
CYBAI
b4089bcd07 Initiate redirect fetching iff the request has a location
Without this checking, we will run into a TIMEOUT request because
http_redirect_fetch will return immediately when location doesn't exist.
2020-05-09 11:33:52 +09:00
bors-servo
4eefaa4a2c
Auto merge of #26473 - Eijebong:cross-origin-resource-policy, r=jdm
Implement cross origin resource policy check

Also fixes an img load event bug that was making some test very racey.
2020-05-08 13:19:20 -04:00
Bastien Orivel
bdbfde9ec0 Don't send a load event when a loaded image is actually the placeholder
The image cache returns an `ImageCacheResult::ImageAvailable `the second
time you try getting the placeholder. This means that in some cases, the
loading of an image would fail, then the same image would get fetched
from the cache, the placeholder would be loaded from that but would be
seen as a normal image, firing a load event.

This made the tests in
`fetch/cross-origin-resource-policy/image-loads.html` fail depending on
their order.
2020-05-08 19:15:24 +02:00
Bastien Orivel
8249be38c9 Implement cross origin resource policy check
I removed the window getter usage from those tests as servo does not
support that yet.
2020-05-08 19:15:24 +02:00
bors-servo
50e05a83b4
Auto merge of #26472 - servo-wpt-sync:wpt_update_08-05-2020, r=jdm
Sync WPT with upstream (08-05-2020)

Automated downstream sync of changes from upstream as of 08-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-08 11:52:32 -04:00
Josh Matthews
8fcdb5657d
Remove passing test metadata for 2020. 2020-05-08 11:52:15 -04:00