Commit graph

43933 commits

Author SHA1 Message Date
dependabot-preview[bot]
a8b8db9e22
build(deps): bump generic-array from 0.12.3 to 0.12.4
Bumps [generic-array](https://github.com/fizyk20/generic-array) from 0.12.3 to 0.12.4.
- [Release notes](https://github.com/fizyk20/generic-array/releases)
- [Changelog](https://github.com/fizyk20/generic-array/blob/0.12.4/CHANGELOG.md)
- [Commits](https://github.com/fizyk20/generic-array/compare/0.12.3...0.12.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-03 06:12:47 +00:00
bors-servo
e13a04627c
Auto merge of #28230 - servo-wpt-sync:wpt_update_02-03-2021, r=jdm
Sync WPT with upstream (02-03-2021)

Automated downstream sync of changes from upstream as of 02-03-2021.
[no-wpt-sync]
r? @servo-wpt-sync
2021-03-02 20:32:16 -05:00
Josh Matthews
b577baf544
Add linux failure. 2021-03-02 20:32:05 -05:00
bors-servo
92d6c89a8f
Auto merge of #28228 - servo:dependabot/cargo/serde_json-1.0.64, r=jdm
build(deps): bump serde_json from 1.0.62 to 1.0.64

Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.62 to 1.0.64.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/serde-rs/json/releases">serde_json's releases</a>.</em></p>
<blockquote>
<h2>v1.0.64</h2>
<ul>
<li>Fix deserialization panic on deserializing <code>RawValue</code> from a slice containing non-utf8 bytes (<a href="https://github-redirect.dependabot.com/serde-rs/json/issues/755">#755</a>)</li>
</ul>
<h2>v1.0.63</h2>
<ul>
<li>Provide <code>Entry::and_modify</code> method on <a href="https://docs.rs/serde_json/1.0/serde_json/map/enum.Entry.html">serde_json::map::Entry</a> (<a href="https://github-redirect.dependabot.com/serde-rs/json/issues/754">#754</a>, thanks <a href="https://github.com/Krout0n"><code>@Krout0n</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d0d80783d3"><code>d0d8078</code></a> Release 1.0.64</li>
<li><a href="8d3b890ef8"><code>8d3b890</code></a> Fix IoRead's raw buffering on invalid utf-8 as well</li>
<li><a href="054326ea8a"><code>054326e</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/serde-rs/json/issues/757">#757</a> from serde-rs/panicraw</li>
<li><a href="c64c1d7429"><code>c64c1d7</code></a> Fix panic deserializing RawValue from invalid utf-8 bytes</li>
<li><a href="2f812d0363"><code>2f812d0</code></a> Add test of RawValue deserialization from invalid utf-8</li>
<li><a href="9bcb08fd92"><code>9bcb08f</code></a> Fix unnecessary trailing semicolon lints in test suite</li>
<li><a href="d400899cbd"><code>d400899</code></a> Release 1.0.63</li>
<li><a href="461f2bfc39"><code>461f2bf</code></a> Merge pull request 754 from Krout0n/entry#and_modify</li>
<li><a href="6e140a9192"><code>6e140a9</code></a> Add Entry::and_modify</li>
<li><a href="64dd1e03e0"><code>64dd1e0</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/serde-rs/json/issues/752">#752</a> from SamuelQZQ/patch-2</li>
<li>Additional commits viewable in <a href="https://github.com/serde-rs/json/compare/v1.0.62...v1.0.64">compare view</a></li>
</ul>
</details>
<br />

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

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-03-02 08:47:51 -05:00
WPT Sync Bot
2084f90f36 Update web-platform-tests to revision b'75b1ecef754b4c81ab92f9dd7d0663fbf3d16afe' 2021-03-02 10:04:51 +00:00
dependabot-preview[bot]
357f9026d7
build(deps): bump serde_json from 1.0.62 to 1.0.64
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.62 to 1.0.64.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.62...v1.0.64)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-02 06:13:16 +00:00
bors-servo
970ab0348f
Auto merge of #28227 - servo-wpt-sync:wpt_update_01-03-2021, r=servo-wpt-sync
Sync WPT with upstream (01-03-2021)

Automated downstream sync of changes from upstream as of 01-03-2021.
[no-wpt-sync]
r? @servo-wpt-sync
2021-03-01 07:24:05 -05:00
WPT Sync Bot
af0bf9334d Update web-platform-tests to revision b'd05fefcf165fd03947238957b00b0ca35c45213c' 2021-03-01 10:09:58 +00:00
bors-servo
8c2ea9fdf0
Auto merge of #28222 - servo-wpt-sync:wpt_update_28-02-2021, r=jdm
Sync WPT with upstream (28-02-2021)

Automated downstream sync of changes from upstream as of 28-02-2021.
[no-wpt-sync]
r? @servo-wpt-sync
2021-02-28 10:46:33 -05:00
Josh Matthews
45df01c26f
Delete 2020 failure. 2021-02-28 10:46:20 -05:00
WPT Sync Bot
b99372177f Update web-platform-tests to revision b'd04481569b4924284b8dd53b6430ef67de54073f' 2021-02-28 09:46:29 +00:00
bors-servo
b196bfeeeb
Auto merge of #28217 - servo:gecko-sync, r=emilio,jdm
style: Sync changes from mozilla-central.
2021-02-27 08:23:57 -05:00
Emilio Cobos Álvarez
fd51cddf96 Keep not parsing conic gradient, update WPT expectations. 2021-02-27 05:58:37 +01:00
Emilio Cobos Álvarez
aa4d2b0b0d selectors: Cherry-pick some fixes that got lost. 2021-02-27 05:58:37 +01:00
bors-servo
48b2fe9e8e
Auto merge of #28213 - servo-wpt-sync:wpt_update_26-02-2021, r=jdm
Sync WPT with upstream (26-02-2021)

Automated downstream sync of changes from upstream as of 26-02-2021.
[no-wpt-sync]
r? @servo-wpt-sync
2021-02-26 19:42:59 -05:00
Josh Matthews
2fe3279d2f
Remove intermittent crash. 2021-02-26 19:42:44 -05:00
Josh Matthews
e6c7c1b597
Revert intermittent crash. 2021-02-26 18:13:54 -05:00
Emilio Cobos Álvarez
31e8e418ea Miscellaneous build / tidy fixes. 2021-02-26 17:53:55 +01:00
Emilio Cobos Álvarez
5158f65810
Revert euclid update. 2021-02-26 17:15:33 +01:00
Sylvestre Ledru
3bcde6fd91
style: Fix clippy warnings
Depends on D96634

Differential Revision: https://phabricator.services.mozilla.com/D96636
2021-02-26 17:15:33 +01:00
bors-servo
7d62876a6b
Auto merge of #28214 - servo:SimonSapin-patch-2, r=jdm
Link to Zulip in HACKING_QUICKSTART.md

Remove links for Matrix or the dev-servo mailing list.
2021-02-26 11:03:02 -05:00
Emilio Cobos Álvarez
484cf5771b style: Avoid some allocations in selector serialization.
The allocations in display_to_css_identifier show up in the profiles of
bug 1675628.

Differential Revision: https://phabricator.services.mozilla.com/D97856
2021-02-26 16:44:05 +01:00
Mihai Alexandru Michis
e9c1d490a9 style: Fix lint error in matching.rs a=lint-fix
CLOSED TREE
2021-02-26 16:44:05 +01:00
Sylvestre Ledru
a95ce79554 style: Fix clippy warnings
Depends on D96634

Differential Revision: https://phabricator.services.mozilla.com/D96636
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
191d5226a3 style: Implement complex :not().
This fixes the failures in bug 1671573 and just works thanks to the
invalidation improvements I did for :is / :where.

Added a couple tests for invalidation which is the tricky bit. 001 is a
very straight-forward test, 002 is the :is test but with :is() replaced
by double-:not().

This also fixes default namespaces inside :is() / :where(), which are
supposed to get ignored, but aren't. Added tests for that and for the
pre-existing :not() behavior which Chrome doesn't quite get right.

Differential Revision: https://phabricator.services.mozilla.com/D94142
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
7e6d70f314 style: Allow :is() and :where() to have better error recovery.
Adjust is-where-parsing.html to work with both the new and old behavior,
and add a test for the new behavior.

Depends on D90049

Differential Revision: https://phabricator.services.mozilla.com/D90050
2021-02-26 16:44:05 +01:00
Mihai Alexandru Michis
b1dbbb2969 Backed out 2 changesets (bug 1664718) for causing wpt and bc failures.
CLOSED TREE

Backed out changeset 62e71d3b6b32 (bug 1664718)
Backed out changeset c8a8791a26ed (bug 1664718)
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
6728aad0c6 style: Fix selectors unit tests.
MANUAL PUSH: Fix BR bustage. CLOSED TREE
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
5980525139 style: Allow :is() and :where() to have better error recovery.
Adjust is-where-parsing.html to work with both the new and old behavior,
and add a test for the new behavior.

Depends on D90049

Differential Revision: https://phabricator.services.mozilla.com/D90050
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
89c2e39dd9 style: Minor cleanup: Use shorthand initialization in selectors.
Differential Revision: https://phabricator.services.mozilla.com/D90049
2021-02-26 16:44:05 +01:00
Masatoshi Kimura
639bada63a style: Replace :-moz-native-anonymous-no-specificity with :where(:-moz-native-anonymous).
Differential Revision: https://phabricator.services.mozilla.com/D88255
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
9ce200a924 style: Implement :-moz-any() as an alias of :is().
This is strictly better and more flexible, but can change specificity so
have a pref in case it causes trouble. I doubt it will though, the
specificity rules of :is() make more sense, and my gut feeling is that
:-moz-any is not very used on the wild.

Make it early-beta-or-earlier for now to minimize risk, once this is on
nightly for a bit we can enable it everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D86696
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
919ff06445 style: Fix Gecko nightly warning. 2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
80dae5bc59 Rustfmt. 2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
c4ad61faa5 style: Don't allow to parse image-set(none).
`none` is not technically part of the `<image>` syntax. Tests in following
patches.

Depends on D100698

Differential Revision: https://phabricator.services.mozilla.com/D100699
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
a0c6628cf2 Miscellaneous rebase fixes. 2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
a5cb6c6927 style: Remove prefers-contrast: forced as per CSSWG resolution.
Differential Revision: https://phabricator.services.mozilla.com/D106485
2021-02-26 16:44:05 +01:00
Boris Chiou
0ef2410ea0 style: Implement Animate trait and ComputeSquaredDistance trait for <ratio>.
I also update the wpt becasue it seems the original one lets <ratio>
support the addition. However, the spec says "Addition of <ratio>s is not
possible".

Differential Revision: https://phabricator.services.mozilla.com/D106219
2021-02-26 16:44:05 +01:00
Boris Chiou
52d39fc1bc style: Move Ratio into independent files.
Based on https://drafts.csswg.org/css-values/#ratios, <ratio> should be
a general types in css values, and now the media query and the position use
this type, so let's move it into the independent files.

Differential Revision: https://phabricator.services.mozilla.com/D106218
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
35b080e021 style: Implement :user-valid and :user-invalid.
And alias :-moz-ui-valid and :-moz-ui-invalid to them.

There are CSSWG resolutions for these for quite a while, and spec for
user-invalid.

Differential Revision: https://phabricator.services.mozilla.com/D105966
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
786b08a669 style: Increase custom property size limit a bit.
Differential Revision: https://phabricator.services.mozilla.com/D105978
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
b90f5f099f style: Hide :-moz-submit-invalid behind a pref.
No other browser supports anything like this and we don't even have
internal users. Only uses of this I've found on the wild were just
resetting the box shadow internal styling we added in bug 582277 (and
since removed in bug 600151).

Differential Revision: https://phabricator.services.mozilla.com/D105955
2021-02-26 16:44:05 +01:00
Emily McDonough
4dc475d3a1 style: Rename alias to aliases in Longhand and Shorthand
Differential Revision: https://phabricator.services.mozilla.com/D105810
2021-02-26 16:44:05 +01:00
Emily McDonough
742c5e0d17 style: Use a base class for Shorthand and Longhand
Differential Revision: https://phabricator.services.mozilla.com/D105797
2021-02-26 16:44:05 +01:00
Markus Stange
e6aaafdda5 style: Remove -moz-mac-fullscreen-button value.
Depends on D105379

Differential Revision: https://phabricator.services.mozilla.com/D105380
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
490db1e2bd style: Reduce the amount of code generated by UnparsedValues::substitute_variables.
This reduces the amount of assembly instructions generated by this
function from 18k+ to ~800.

This should make reasoning about its stack space usage sane, and should
fix the ASAN stack overflows, but also we should take this regardless,
because it's saner and makes reading it simpler.

I also think that the writing_mode shenanigans is fixing a bug (I think
before this, we'd pick the first physical value which mapped to any of
the properties, which is wrong), but I haven't bothered looking for a
test-case that fails before my patch. The relevant WPTs
(css/css-logical/animation*) still pass.

Differential Revision: https://phabricator.services.mozilla.com/D105342
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
b0d05d1a5d style: Cache substituted values from shorthand properties during the cascade.
This brings the time down to 1.6ms from 4.8ms on the test-case in the
bug. This should be improvable too, but I think this is a nice
improvement for regular styling as well.

Differential Revision: https://phabricator.services.mozilla.com/D105187
2021-02-26 16:44:05 +01:00
Emily McDonough
1b18b06186 style: Switch properties to use a bitfield to determine validity in rules.
This doesn't use a full bitmap for every single rule type, as we only expect
that keyframe, page, and style rules will be checked.

Differential Revision: https://phabricator.services.mozilla.com/D104949
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
36e6c68c9f style: Rustfmt cascade.rs.
Differential Revision: https://phabricator.services.mozilla.com/D105186
2021-02-26 16:44:05 +01:00
Pierre TALLOTTE
48db30f6e2 style: Hide non-standard values of caption-side.
Differential Revision: https://phabricator.services.mozilla.com/D104321
2021-02-26 16:44:05 +01:00