Commit graph

42975 commits

Author SHA1 Message Date
bors-servo
916d9e0e3d
Auto merge of #27404 - servo-wpt-sync:wpt_update_26-07-2020, r=servo-wpt-sync
Sync WPT with upstream (26-07-2020)

Automated downstream sync of changes from upstream as of 26-07-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-07-26 06:44:42 -04:00
WPT Sync Bot
7aa6c54799 Update web-platform-tests to revision e2364b32eb46c41c242f6f728b3cb937f5d92328 2020-07-26 10:44:28 +00:00
bors-servo
fa9b077e84
Auto merge of #27401 - servo-wpt-sync:wpt_update_25-07-2020, r=servo-wpt-sync
Sync WPT with upstream (25-07-2020)

Automated downstream sync of changes from upstream as of 25-07-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-07-25 06:33:29 -04:00
WPT Sync Bot
c6de66cc49 Update web-platform-tests to revision d047c507f134899be6f0bde7a48c630ab67fe34a 2020-07-25 10:33:17 +00:00
bors-servo
49885648e7
Auto merge of #27391 - servo:jdm-patch-46, r=jdm
Fix nightly smoketest again.

I misdiagnosed a failure several fixes ago, so this undoes that fix.
2020-07-24 23:28:56 -04:00
bors-servo
59c9606dea
Auto merge of #27390 - servo-wpt-sync:wpt_update_24-07-2020, r=servo-wpt-sync
Sync WPT with upstream (24-07-2020)

Automated downstream sync of changes from upstream as of 24-07-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-07-24 22:23:57 -04:00
bors-servo
9864e4ce6c
Auto merge of #27385 - servo:list, r=Manishearth
Add Layout 2020 support for `display: list-item`
2020-07-24 21:18:16 -04:00
bors-servo
8a5a5cb91b
Auto merge of #27396 - jdm:home-button, r=Manishearth
Avoid crashing when no homepage preference is set.

Fixes #27394.
2020-07-24 20:07:35 -04:00
bors-servo
b83433fb14
Auto merge of #27299 - avr1254:master, r=jdm
Implemented get element target algorithm

Added check for area and anchor element

Finished issue: Implemented get target and no opener algorithm

Implemented get element target and get element noopener algorithms.

<!-- Please describe your changes on the following line: -->
Used the algorithms in html spec to implement target and no opener algorithms.

---
<!-- 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 #27253 (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-07-24 17:30:38 -04:00
Arjun Ramachandrula
2d5c30d042 Implemented get element target and get element noopener algorithms
and refactored into functions.
2020-07-24 16:50:46 -04:00
Josh Matthews
4f7b44c850 Avoid crashing when no homepage preference is set. 2020-07-24 16:08:58 -04:00
bors-servo
ebec798263
Auto merge of #27389 - kunalmohan:update-wgpu, r=kvark
Implement GPURenderBundles

<!-- Please describe your changes on the following line: -->
1. Implement `GPURenderBundleEncoder` and `GPURenderBundle`.
2. Update wgpu to use serializable descriptors.
3. Set user-defined labels on object creation.

r?@kvark

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

<!-- 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-07-24 14:55:09 -04:00
bors-servo
49870f9217
Auto merge of #27386 - asajeffrey:readme-gstreamer-packages, r=Manishearth
Added debian gstreamer packages to README

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

Document which gstreamer packages are needed on Ubuntu 20.04LTS.

---
<!-- 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 #27363
- [x] These changes do not require tests because it's edits to the README

<!-- 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-07-24 13:57:25 -04:00
bors-servo
7eda4d2d86
Auto merge of #27377 - CYBAI:fix-apostrophes, r=jdm
Handle apostrophes for whatwg URL tidy check

---
<!-- 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 #27366
- [x] These changes do not require tests because it will improve the tidy check for WHATWG URL

<!-- 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-07-24 12:41:39 -04:00
bors-servo
6ca3c84d28
Auto merge of #27376 - pcwalton:floats-2020-containing-block, r=Manishearth
Use the size of the containing block, not the size of the block formatting context, to place floats in layout 2020.

The containing block for a float is not necessarily the same as the block
formatting context the float is in per CSS 2.1 [1]:

"For other elements, if the element’s position is relative or static, the
containing block is formed by the content edge of the nearest block container
ancestor box."

This shows up in the simplest case:

	<html>
	<body>
	<div style="float: left">Hello</div>
	</body>
	</html>

In this case, the `<html>` element is the block formatting context with inline
size equal to the width of the window, but the `<body>` element with nonzero
inline margins is the containing block for the float. The float placement must
respect the content box of the `<body>` element (i.e. floats must not overlap
the `<body>` element's margins), not that of the `<html>` element.

Because a single block formatting context may contain floats with different
containing blocks, the left and right "walls" of that containing block become
properties of individual floats at the time of placement, not properties of the
float context itself.

Additionally, this commit generalizes the float placement logic a bit to allow
the placement of arbitrary objects, not just floats. This is intended to
support inline layout and block formatting context placement.

This commit updates the `FloatContext` and associated tests only and doesn't
actually wire the context up to the rest of layout, so floats in pages still
aren't actually laid out.

[1]: https://drafts.csswg.org/css2/#containing-block-details

r? @Manishearth

<!-- 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 #___ (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. -->
2020-07-24 11:12:34 -04:00
Josh Matthews
ee570ca6ec
Fix nightly smoketest again. 2020-07-24 10:30:53 -04:00
WPT Sync Bot
bd0b0ea24a Update web-platform-tests to revision 593d7eb21e1c3ac161aa51cce914056eb9182962 2020-07-24 10:57:09 +00:00
Simon Sapin
b91e293819 Add layout support for list markers 2020-07-24 09:31:24 +02:00
Simon Sapin
4a4199c1d6 Don’t parse unspported values of content 2020-07-24 09:31:24 +02:00
Kunal Mohan
aff22db33f Implement GPURenderBundleEncoder and GPURenderBundle 2020-07-24 12:45:23 +05:30
bors-servo
453aafeea6
Auto merge of #27373 - asajeffrey:webxr-clear-every-frame, r=Manishearth
Updated webxr

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

Updates webxr to clear the render target every frame.

---
<!-- 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 #27286 (really this time)
- [x] These changes do not require tests because we don't reftest webxr

<!-- 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-07-23 15:46:07 -04:00
Alan Jeffrey
58e4a53533 Added debian gstreamer packages to README 2020-07-23 13:58:27 -05:00
Alan Jeffrey
dbe9d1aac2 Update webxr 2020-07-23 12:45:27 -05:00
bors-servo
0d77e0f6cf
Auto merge of #27382 - servo:jdm-patch-46, r=asajeffrey
Fix nightly smoketest
2020-07-23 13:30:05 -04:00
bors-servo
b5710861ec
Auto merge of #27372 - asajeffrey:add-ubuntu-libxcb-dependencies, r=jdm
Add libxcb dependencies to README and bootstrap.py

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

Gets servo to build on Ubuntu xenial+ again.

---
<!-- 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 #27327
- [x] These changes do not require tests because it's fixing build breakage

<!-- 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-07-23 11:07:32 -04:00
Simon Sapin
82e274aec9 Make a bool for display: list-item available to flow box construction 2020-07-23 16:43:57 +02:00
bors-servo
b0b4f8ac6a
Auto merge of #27325 - paulrouget:sessionavailable, r=jdm
Fire sessionavailable

Depends on #27304
Fix #27272
2020-07-23 09:52:27 -04:00
Josh Matthews
b0dd7ab812
Fix nightly smoketest 2020-07-23 08:58:50 -04:00
bors-servo
9261cf6ead
Auto merge of #27381 - servo-wpt-sync:wpt_update_23-07-2020, r=servo-wpt-sync
Sync WPT with upstream (23-07-2020)

Automated downstream sync of changes from upstream as of 23-07-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-07-23 06:53:35 -04:00
WPT Sync Bot
b64dc1ed97 Update web-platform-tests to revision 59cec4f843d5c86d5d2e99d636e465e09807cafb 2020-07-23 10:53:21 +00:00
bors-servo
e823d1623b
Auto merge of #27362 - servo:jdm-patch-46, r=asajeffrey
Fix nightly smoketest.
2020-07-23 00:57:21 -04:00
CYBAI
584e031530 Handle apostrophes for whatwg URL tidy check 2020-07-23 13:05:04 +09:00
Patrick Walton
362b64aa68 Use the size of the containing block, not the size of the block formatting
context, to place floats in layout 2020.

The containing block for a float is not necessarily the same as the block
formatting context the float is in per CSS 2.1 [1]:

"For other elements, if the element’s position is relative or static, the
containing block is formed by the content edge of the nearest block container
ancestor box."

This shows up in the simplest case:

	<html>
	<body>
	<div style="float: left">Hello</div>
	</body>
	</html>

In this case, the `<html>` element is the block formatting context with inline
size equal to the width of the window, but the `<body>` element with nonzero
inline margins is the containing block for the float. The float placement must
respect the content box of the `<body>` element (i.e. floats must not overlap
the `<body>` element's margins), not that of the `<html>` element.

Because a single block formatting context may contain floats with different
containing blocks, the left and right "walls" of that containing block become
properties of individual floats at the time of placement, not properties of the
float context itself.

Additionally, this commit generalizes the float placement logic a bit to allow
the placement of arbitrary objects, not just floats. This is intended to
support inline layout and block formatting context placement.

This commit updates the `FloatContext` and associated tests only and doesn't
actually wire the context up to the rest of layout, so floats in pages still
aren't actually laid out.

[1]: https://drafts.csswg.org/css2/#containing-block-details
2020-07-22 19:58:28 -07:00
bors-servo
7b01d40a64
Auto merge of #27365 - jdm:offthread-fixes, r=cybai
Fixes for off-thread compilation of scripts

Fixes #27355. Fixes #27349.
2020-07-22 22:30:52 -04:00
Paul Rouget
b42d441732 Fire sessionavailable if in transient mode 2020-07-23 03:32:28 +02:00
bors-servo
5f31dbf993
Auto merge of #27368 - jdm:wack-fix, r=Manishearth
Use backtrace fork with UWP-specific fix.

Fixes #27367, which was introduced by 57f4f0a09f. I'd like to do a new release in the store, and I would prefer not to wait for a new version of backtrace to be released before that can happen.
2020-07-22 18:31:55 -04:00
Alan Jeffrey
17e49aa25a Add libxcb dependencies to README and bootstrap.py 2020-07-22 16:46:48 -05:00
Josh Matthews
22d0117ea3 Use backtrace fork with UWP-specific fix. 2020-07-22 15:47:24 -04:00
bors-servo
0648c1dc9e
Auto merge of #27358 - servo:dependabot/cargo/crossbeam-channel-0.4.3, r=jdm
build(deps): bump crossbeam-channel from 0.4.2 to 0.4.3

Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) from 0.4.2 to 0.4.3.
<details>
<summary>Commits</summary>
<ul>
<li><a href="5a68889cbc"><code>5a68889</code></a> Bump crossbeam-channel to v0.4.3</li>
<li><a href="669736b8e5"><code>669736b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/crossbeam-rs/crossbeam/issues/537">#537</a> from nical/cb-chan-license</li>
<li><a href="ce713a1f8b"><code>ce713a1</code></a> Change crossbeam-channel's license to MIT OR Apache-2.0.</li>
<li><a href="81ab18efc7"><code>81ab18e</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/crossbeam-rs/crossbeam/issues/530">#530</a> from crossbeam-rs/license</li>
<li><a href="81eea47889"><code>81eea47</code></a> Remove parentheses from license field in Cargo.toml</li>
<li><a href="2f1ed42da6"><code>2f1ed42</code></a> Merge <a href="https://github-redirect.dependabot.com/crossbeam-rs/crossbeam/issues/527">#527</a></li>
<li><a href="1ad6b9fdd4"><code>1ad6b9f</code></a> Attempt to fix permission error</li>
<li><a href="af63c6b605"><code>af63c6b</code></a> Propagate nightly feature</li>
<li><a href="cae71e1c62"><code>cae71e1</code></a> Check all feature combinations works properly on CI</li>
<li><a href="bbc8601e4d"><code>bbc8601</code></a> Merge <a href="https://github-redirect.dependabot.com/crossbeam-rs/crossbeam/issues/525">#525</a> <a href="https://github-redirect.dependabot.com/crossbeam-rs/crossbeam/issues/528">#528</a></li>
<li>Additional commits viewable in <a href="https://github.com/crossbeam-rs/crossbeam/compare/v0.4.2...crossbeam-channel-0.4.3">compare view</a></li>
</ul>
</details>
<br />

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

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-07-22 15:31:57 -04:00
Kunal Mohan
75abccb16b update wgpu, use serializable descriptors 2020-07-22 23:22:13 +05:30
Josh Matthews
e3f0989e1c Ensure scripts compiled off-thread can import modules. 2020-07-22 13:10:03 -04:00
Josh Matthews
a271ed9150 Pass C string pointer to CompileOptionsWrapper. 2020-07-22 12:30:27 -04:00
Josh Matthews
88f2942405
Fix nightly smoketest. 2020-07-22 11:12:39 -04:00
bors-servo
6a9aac3e65
Auto merge of #27361 - servo-wpt-sync:wpt_update_22-07-2020, r=servo-wpt-sync
Sync WPT with upstream (22-07-2020)

Automated downstream sync of changes from upstream as of 22-07-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-07-22 06:22:21 -04:00
WPT Sync Bot
4c80634acb Update web-platform-tests to revision aa86bfbb569fee92a3176bae68e3b7ec54140a6d 2020-07-22 10:22:06 +00:00
dependabot-preview[bot]
6d064275e0
build(deps): bump crossbeam-channel from 0.4.2 to 0.4.3
Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/v0.4.2...crossbeam-channel-0.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-22 07:58:38 +00:00
bors-servo
a242913629
Auto merge of #26710 - AbhishekSharma102:issue_26571, r=jdm,gterzian
Compile external scripts off the main 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
- [ ] These changes fix #26571  (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-07-21 18:29:47 -04:00
AbhishekSharma102
1119dd119e Added off thread compilation
Co-authored-by: Gregory Terzian <2792687+gterzian@users.noreply.github.com>
Co-authored-by: Abhishek Sharma <20724848+AbhishekSharma102@users.noreply.github.com>
2020-07-21 16:20:51 -04:00
bors-servo
863a7ee08b
Auto merge of #27333 - jdm:package-macos, r=asajeffrey
Include gstreamer plugins in macOS nightly package.

Fixes #27318. Fixes #27332.
2020-07-21 16:13:22 -04:00
bors-servo
ac37078af8
Auto merge of #27348 - kunalmohan:gpu-copy, r=kvark
Implement GPUCommandEncoder.copy commands

<!-- Please describe your changes on the following line: -->
r?@kvark

---
<!-- 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. -->
2020-07-21 15:13:08 -04:00