Commit graph

43777 commits

Author SHA1 Message Date
Brian Birtles
ad22c7a369 style: Allow animations and transitions on ::marker
As per the following change to the spec:

6b3d7240b5

The additional failure annotation is added because we don't currently treat
text-combine-upright as non-animatable and this patch exposes the existing bug
(bug 1654195).

Differential Revision: https://phabricator.services.mozilla.com/D84308
2021-02-26 16:44:05 +01:00
Mats Palmgren
5382a99adb style: [css-grid] Make empty and all-whitespace strings in 'grid-template-areas' invalid.
Differential Revision: https://phabricator.services.mozilla.com/D84398
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
780beace00 style: Make stylesheet invalidation faster.
This fixes performance issues when there's a massive number of rules and
a massive DOM.

Instead of going through all rules for all the DOM, we now look stuff in
hashmaps.

Differential Revision: https://phabricator.services.mozilla.com/D83506
2021-02-26 16:44:05 +01:00
Cameron McCormack
5752e4a3a2 style: Don't use attribute selectors for determining if a select is a drop down or a list box.
Instead add a pseudo-class that does the expected size="" attribute parsing.

Removing the Gtk-specific rule setting the text color since it doesn't
seem to have any effect currently.

Differential Revision: https://phabricator.services.mozilla.com/D83448
2021-02-26 16:44:05 +01:00
Cameron McCormack
a2b016157e style: Hide range and number-input appearance values from content.
Forgot to follow up on these two remaining non-standard values that may have
been being used to reset a <meter> or <input type=number> back to its
original appearance, but which telemetry showed no usage of.

Differential Revision: https://phabricator.services.mozilla.com/D83598
2021-02-26 16:44:05 +01:00
Cameron McCormack
da503c4b48 style: Re-order Appearance values.
Differential Revision: https://phabricator.services.mozilla.com/D83437
2021-02-26 16:44:05 +01:00
Cameron McCormack
862b7d1249 style: Make appearance: button behave like auto on various elements.
Differential Revision: https://phabricator.services.mozilla.com/D83434
2021-02-26 16:44:05 +01:00
Cameron McCormack
f03883774b style: Avoid exposing appearance: range-thumb to content.
Differential Revision: https://phabricator.services.mozilla.com/D83433
2021-02-26 16:44:05 +01:00
Cameron McCormack
ab3791234e style: Mark appearance values that are only used internally as chrome-only.
Differential Revision: https://phabricator.services.mozilla.com/D83432
2021-02-26 16:44:05 +01:00
Cameron McCormack
21b6c69322 style: Remove appearance values not used by the browser or Web content.
Differential Revision: https://phabricator.services.mozilla.com/D83431
2021-02-26 16:44:05 +01:00
Cameron McCormack
8457666204 style: Change internal uses of -moz-appearance to appearance and -moz-default-appearance.
Uses of `-moz-appearance: none` are changed to `appearance: none`.

Uses of other values that are simply reverting the appearance back to
its default are changed to `appearance: auto`.

Uses of values in UA sheets that are defining the inherent appearance of
widgets are changed to:

  appearance: auto;
  -moz-default-appearance: <value>;

since those values are either no longer supported on (-moz-)appearance,
or are still supported but only in some limited form.

There are some uses of `-moz-appearance: textfield` on <input
type=number> elements that are renamed to `appearance: textfield`.

Differential Revision: https://phabricator.services.mozilla.com/D83430
2021-02-26 16:44:05 +01:00
Cameron McCormack
7ae2f8602e style: Defer to -moz-default-appearance when appearance is auto.
Differential Revision: https://phabricator.services.mozilla.com/D83429
2021-02-26 16:44:05 +01:00
Cameron McCormack
01efe3a459 style: Add unprefixed appearance property and make -moz-appearance and -webkit-appearance be aliases.
Differential Revision: https://phabricator.services.mozilla.com/D83428
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
9d3876bda0 style: Apply a grayscale filter to pages when monochrome.
This hooks the "monochrome" media query and co to the
nsIPrintSettings.printInColor setting.

This print setting we're using is not exposed in the print preview UI,
but you can test it setting the print.print_in_color preference to
"false", and then print preview will correctly show up greyscale'd.

Once this lands, the UI folks just have to use it as they see fit :)

I would've liked to add a proper rendering test, but the print reftests
check only whether the PDF text matches.

I could add a test to printpreview_helper.xhtml, but I'm refactoring
that file in bug 1648064 so I'd rather wait a bit and add it in a
separate bug. The test for the media feature should make sure that we
test that code path at least.

Differential Revision: https://phabricator.services.mozilla.com/D83552
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
1c8d4be6b2 style: Fix an off-by-one in the transition property iterator.
By the time we get to iterate over the longhands of a shorthand, we've
already advanced the range iterator, so we look at the next duration and
such, which causes this bug.

I'm seriously baffled that no existing test caught this when it
landed, neither in our internal test suite nor wpt...  :/

Differential Revision: https://phabricator.services.mozilla.com/D82396
2021-02-26 16:44:05 +01:00
Cameron McCormack
1f9d6ad5ef style: Remove unused function on Appearance.
Differential Revision: https://phabricator.services.mozilla.com/D82124
2021-02-26 16:44:05 +01:00
Cameron McCormack
87612b65c5 style: Remove unused StyleAppearance values.
The parsing of these values was disabled in bug 1554150.

Differential Revision: https://phabricator.services.mozilla.com/D82122
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
75b38efefd style: Have the destructor of CalcNode be never inline.
You tell me which other things need it... Copy-constructor? operator==?
and such?

Differential Revision: https://phabricator.services.mozilla.com/D73385
2021-02-26 16:44:05 +01:00
Zeke Medley
8ff565c86b style: Implement the prefers-contrast media-query.
Differential Revision: https://phabricator.services.mozilla.com/D79553
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
46df06b3e2 style: Use mozilla::Length rather than nscoord to store font sizes.
This avoids arbitrary precision loss when computing REM units and so on,
which is particularly important if we ever change the base of our app
units (but useful regardless).

Differential Revision: https://phabricator.services.mozilla.com/D79928
2021-02-26 16:44:05 +01:00
bors-servo
45f5d84d1b
Auto merge of #28209 - lunush:patch-1, r=jdm
Add Gstreamer plugins to Arch Linux deps script

<!-- Please describe your changes on the following line: -->
I was unable to compile servo on my machine because of errors related to gst. Installing the following solved the issue.

---
<!-- 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
- [X] These changes do not require tests because only README is affected

<!-- 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. -->
2021-02-26 02:31:57 -05:00
Lunush
1e8d18f517
Add Gstreamer plugins to Arch Linux deps script
I was unable to compile servo on my machine because of errors related to gst. Installing the following solved the issue.
2021-02-26 07:32:07 +03:00
bors-servo
5916911281
Auto merge of #28201 - servo:rustup, r=jdm
Upgrade to rustc 1.52.0-nightly (a8486b64b 2021-02-24)
2021-02-25 18:40:03 -05:00
bors-servo
f2c437a77b
Auto merge of #28206 - servo:jdm-patch-46, r=SimonSapin
Fix UWP nightly build and docs build.
2021-02-25 16:20:37 -05:00
Josh Matthews
4547a17121
Fix doc build. 2021-02-25 15:25:23 -05:00
Josh Matthews
9e928a487e
Fix UWP nightly build. 2021-02-25 15:20:34 -05:00
Simon Sapin
aa854ec2d2 Upgrade to rustc 1.52.0-nightly (a8486b64b 2021-02-24) 2021-02-25 20:31:43 +01:00
Simon Sapin
479a42a980 Reformat with rustfmt 1.4.36-nightly (7de6968 2021-02-07) 2021-02-25 20:31:42 +01:00
Simon Sapin
2dd3c05479 Manually reformat ports/winit/**/*.rs
`cargo fmt` misses these files, possibly because of `include!` or `#[cfg]` in `main.rs`. This commit runs `rustfmt` directly.
2021-02-25 20:31:42 +01:00
bors-servo
6e1350f3aa
Auto merge of #27647 - jdm:build-std, r=SimonSapin
Use build-std instead of xargo.

The changes to num-integer and indexmap are to work around https://github.com/cuviper/autocfg/issues/34.
2021-02-25 14:28:24 -05:00
bors-servo
30f927f67b
Auto merge of #28203 - jdm:update-truetype, r=SimonSapin
Update truetype dependency.

Closes https://github.com/servo/servo/issues/28101
2021-02-25 13:22:05 -05:00
bors-servo
a72990e378
Auto merge of #28202 - servo:not-rustup, r=jdm
Fix some warnings from future Rust Nightlies

This is the parts of https://github.com/servo/servo/pull/28201 that can land without actually upgrading the toolchain (which is likely blocked on https://github.com/servo/servo/issues/28101)
2021-02-25 12:28:07 -05:00
bors-servo
a636cc0c39
Auto merge of #28200 - servo-wpt-sync:wpt_update_25-02-2021, r=jdm
Sync WPT with upstream (25-02-2021)

Automated downstream sync of changes from upstream as of 25-02-2021.
[no-wpt-sync]
r? @servo-wpt-sync
2021-02-25 11:23:25 -05:00
Josh Matthews
47fc8f9697 Force indexmap to rely on libstd. 2021-02-25 10:15:09 -05:00
Josh Matthews
9c98170a21 Update num-integer. 2021-02-25 10:15:08 -05:00
Josh Matthews
9535f228f3 Use build-std instead of xargo. 2021-02-25 10:15:05 -05:00
Josh Matthews
0382b95bb4
Add 2020 failure. 2021-02-25 10:14:05 -05:00
Josh Matthews
33c22f5f7d
Add 2020 failure. 2021-02-25 10:13:35 -05:00
Josh Matthews
b29a8a21f7 Update truetype dependency. 2021-02-25 10:10:40 -05:00
Simon Sapin
a0d9f97c8e Fix warnings introduced in newer Rust Nightly
This does not (yet) upgrade ./rust-toolchain

The warnings:

* dead_code "field is never read"
* redundant_semicolons "unnecessary trailing semicolon"
* non_fmt_panic "panic message is not a string literal, this is no longer accepted in Rust 2021"
* unstable_name_collisions "a method with this name may be added to the standard library in the future"
* legacy_derive_helpers "derive helper attribute is used before it is introduced" https://github.com/rust-lang/rust/issues/79202
2021-02-25 15:36:03 +01:00
bors-servo
15f3445a34
Auto merge of #28195 - servo:dependabot/cargo/futures-0.1.31, r=jdm
Bump futures from 0.1.30 to 0.1.31

Bumps [futures](https://github.com/rust-lang-nursery/futures-rs) from 0.1.30 to 0.1.31.
<details>
<summary>Commits</summary>
<ul>
<li><a href="49ad690a60"><code>49ad690</code></a> Release 0.1.31 (<a href="https://github-redirect.dependabot.com/rust-lang-nursery/futures-rs/issues/2359">#2359</a>)</li>
<li><a href="8b26bd830e"><code>8b26bd8</code></a> Migrate CI to GitHub Actions (<a href="https://github-redirect.dependabot.com/rust-lang-nursery/futures-rs/issues/2360">#2360</a>)</li>
<li><a href="cfe1d82c15"><code>cfe1d82</code></a> Backport to 0.1: FuturesUnordered: Do not poll the same future twice per iter...</li>
<li>See full diff in <a href="https://github.com/rust-lang-nursery/futures-rs/compare/0.1.30...0.1.31">compare view</a></li>
</ul>
</details>
<br />

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

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>
2021-02-25 08:32:50 -05:00
WPT Sync Bot
4db11786c5 Update web-platform-tests to revision b'51407aaa3d17aa440f6807caef5e390dc779087a' 2021-02-25 09:47:00 +00:00
Simon Sapin
4353d534d4 Port ./mach rustup to Python 3 2021-02-25 09:09:18 +01:00
dependabot-preview[bot]
f95773fda6
Bump futures from 0.1.30 to 0.1.31
Bumps [futures](https://github.com/rust-lang-nursery/futures-rs) from 0.1.30 to 0.1.31.
- [Release notes](https://github.com/rust-lang-nursery/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang-nursery/futures-rs/compare/0.1.30...0.1.31)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-25 06:39:51 +00:00
bors-servo
60b642968b
Auto merge of #28193 - servo:jdm-patch-46, r=jdm
Fix more python2isms
2021-02-25 01:19:51 -05:00
bors-servo
19d1544b66
Auto merge of #27619 - servo:rustup, r=jdm
Upgrade to rustc 1.48.0-nightly (623fb90b5 2020-09-26)

https://github.com/rust-lang/hashbrown/pull/159 reduced `size_of::<HashMap>()`
2021-02-25 00:11:29 -05:00
Josh Matthews
dbc7919a28
Fix encoding call. 2021-02-24 23:08:05 -05:00
Josh Matthews
04b89d1b53
Fix doc build under py3. 2021-02-24 23:03:27 -05:00
bors-servo
9a6ae55fd3
Auto merge of #27822 - servo:dependabot/cargo/num-traits-0.2.14, r=jdm
Bump num-traits from 0.2.12 to 0.2.14

Bumps [num-traits](https://github.com/rust-num/num-traits) from 0.2.12 to 0.2.14.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rust-num/num-traits/blob/master/RELEASES.md">num-traits's changelog</a>.</em></p>
<blockquote>
<h1>Release 0.2.14 (2020-10-29)</h1>
<ul>
<li>Clarify the license specification as &quot;MIT OR Apache-2.0&quot;.</li>
</ul>
<p><strong>Contributors</strong>: <a href="https://github.com/cuviper">@cuviper</a></p>
<h1>Release 0.2.13 (2020-10-29)</h1>
<ul>
<li><a href="https://github-redirect.dependabot.com/rust-num/num-traits/pull/180">The new <code>OverflowingAdd</code>, <code>OverflowingSub</code>, and <code>OverflowingMul</code> traits</a>
return a tuple with the operation result and a <code>bool</code> indicating overflow.</li>
<li><a href="https://github-redirect.dependabot.com/rust-num/num-traits/pull/185">The &quot;i128&quot; feature now overrides compiler probes for that support</a>.
This may fix scenarios where <code>autocfg</code> probing doesn't work properly.</li>
<li><a href="https://github-redirect.dependabot.com/rust-num/num-traits/pull/186">Casts from large <code>f64</code> values to <code>f32</code> now saturate to infinity</a>. They
previously returned <code>None</code> because that was once thought to be undefined
behavior, but <a href="https://github-redirect.dependabot.com/rust-lang/rust/issues/15536">rust#15536</a> resolved that such casts are fine.</li>
<li><a href="https://github-redirect.dependabot.com/rust-num/num-traits/issues/192"><code>Num::from_str_radix</code> documents requirements for radix support</a>, which
are now more relaxed than previously implied. It is suggested to accept at
least <code>2..=36</code> without panicking, but <code>Err</code> may be returned otherwise.</li>
</ul>
<p><strong>Contributors</strong>: <a href="https://github.com/cuviper">@cuviper</a>, <a href="https://github.com/Enet4">@Enet4</a>, <a href="https://github.com/KaczuH">@KaczuH</a>, <a href="https://github.com/martin-t">@martin-t</a>, <a href="https://github.com/newpavlov">@newpavlov</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="e8da6fe581"><code>e8da6fe</code></a> Release 0.2.14</li>
<li><a href="deedb93eb8"><code>deedb93</code></a> Merge <a href="https://github-redirect.dependabot.com/rust-num/num-traits/issues/193">#193</a></li>
<li><a href="5e3352c2e4"><code>5e3352c</code></a> Update the names for overflowing results</li>
<li><a href="5b6299204a"><code>5b62992</code></a> Document relaxed requirements for Num::from_str_radix</li>
<li><a href="37e765824d"><code>37e7658</code></a> Release 0.2.13</li>
<li><a href="f0a980b29e"><code>f0a980b</code></a> Merge <a href="https://github-redirect.dependabot.com/rust-num/num-traits/issues/185">#185</a> <a href="https://github-redirect.dependabot.com/rust-num/num-traits/issues/186">#186</a> <a href="https://github-redirect.dependabot.com/rust-num/num-traits/issues/190">#190</a></li>
<li><a href="26c9ad2256"><code>26c9ad2</code></a> Merge <a href="https://github-redirect.dependabot.com/rust-num/num-traits/issues/180">#180</a></li>
<li><a href="a939c51793"><code>a939c51</code></a> Correct docs for overflowing docs</li>
<li><a href="6c499ada16"><code>6c499ad</code></a> Normalize the comment style</li>
<li><a href="234e855576"><code>234e855</code></a> Allow large f64-to-f32 to saturate to infinity</li>
<li>Additional commits viewable in <a href="https://github.com/rust-num/num-traits/compare/num-traits-0.2.12...num-traits-0.2.14">compare view</a></li>
</ul>
</details>
<br />

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

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>
2021-02-24 20:36:56 -05:00
dependabot-preview[bot]
4324cd76be
Bump num-traits from 0.2.12 to 0.2.14
Bumps [num-traits](https://github.com/rust-num/num-traits) from 0.2.12 to 0.2.14.
- [Release notes](https://github.com/rust-num/num-traits/releases)
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.12...num-traits-0.2.14)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-24 20:04:51 +00:00