Oriol Brufau
f0b7f3aca2
Further changes required by Servo
2023-10-02 14:37:19 +00:00
Tiaan Louw
3d0cf4dbf9
style: Add simple parsing and matching support for :has
...
Parsing is behind a config value `layout.css.has-selectors.enabled`. This
change does not support p:has(> a) combinators, but will handle them
gracefully, just not matching on them.
Differential Revision: https://phabricator.services.mozilla.com/D149515
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
dcdf9f33d5
style: Fix grid shorthand parsing to not incorrectly ignore the last token in one case
...
Differential Revision: https://phabricator.services.mozilla.com/D149666
2023-10-02 14:37:19 +00:00
Oriol Brufau
9ebdc22cae
Further changes required by Servo
2023-10-02 14:37:19 +00:00
Mike Hommey
fb95cb7993
style: Update stylo to itertools:0.10, itoa:1.0 and toml:0.5
...
Differential Revision: https://phabricator.services.mozilla.com/D149454
2023-10-02 14:37:19 +00:00
Jonathan Kew
becb855b3a
style: Only accept the CSS2 font-variant values (normal/small-caps) in the font shorthand; CSS Fonts 3/4 font-variant additions are not allowed
...
Differential Revision: https://phabricator.services.mozilla.com/D149440
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
6a5f012d3b
style: Fix dynamic viewport size
...
Differential Revision: https://phabricator.services.mozilla.com/D149275
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
5de65d9f2c
style: Make viewport-relative units zoomable via "zoom text only"
...
They're not font relative, so it we probably want them to be zoomed.
Differential Revision: https://phabricator.services.mozilla.com/D148796
2023-10-02 14:37:19 +00:00
Boris Chiou
82d7f2154d
style: Hook named scroll timelines to animation-timeline
...
Basically, animation-timeline could be
1. auto
2. none
3. <timeline-name>
We extend the <timeline-name> to cover both @scroll-timeline rule and
scroll-timeline-name property. We check @scroll-timeline rule first. If
it doesn't exist, we check scroll-timeline-name of the element itself,
the previous silbings, and their ancestors.
Differential Revision: https://phabricator.services.mozilla.com/D146358
2023-10-02 14:37:19 +00:00
Boris Chiou
13acff77d1
style: Support scroll-timeline shorthand in style system
...
Implement
"scroll-timeline: <'scroll-timeline-axis'> || <'scroll-timeline-name'>".
Differential Revision: https://phabricator.services.mozilla.com/D146020
2023-10-02 14:37:19 +00:00
Boris Chiou
0c709f714b
style: Support scroll-timeline-axis longhand in style system
...
Implement "scroll-timeline-axis: block | inline | vertical | horizontal".
Differential Revision: https://phabricator.services.mozilla.com/D146019
2023-10-02 14:37:19 +00:00
Boris Chiou
8d8594ef86
style: Support scroll-timeline-name longhand in style system
...
Implement "scroll-timeline-name: none | <custom-ident>".
Differential Revision: https://phabricator.services.mozilla.com/D146018
2023-10-02 14:37:19 +00:00
Oriol Brufau
105050d46d
Further changes required by Servo
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
dcafbde256
style: Move fixed-point font types to Rust
...
Now that cbindgen and rust support const generics, it seems more simple.
This centralizes all the relevant font constants etc in rust and avoids
conversions when going from rust to C++ and vice versa.
Differential Revision: https://phabricator.services.mozilla.com/D148847
2023-10-02 14:37:19 +00:00
Mike Hommey
48749641d3
style: Update derive_more to 0.99.17
...
Limit its features to those we actually use, which turns out is none for
webrender_api.
Differential Revision: https://phabricator.services.mozilla.com/D148734
2023-10-02 14:37:19 +00:00
Oriol Brufau
04a817c0d2
Further changes required by Servo
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
c283b32991
style: Add a low-priority selector list for pseudo-classes that have global rules
...
This avoids trying to match those global rules for most elements that
can't match them anyways.
Differential Revision: https://phabricator.services.mozilla.com/D147640
2023-10-02 14:37:19 +00:00
Tiaan Louw
1162204bad
style: Rename :-moz-modal-dialog to :modal
...
Differential Revision: https://phabricator.services.mozilla.com/D148751
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
7f81cd4f7c
style: While at it use some better names for some bits
...
Differential Revision: https://phabricator.services.mozilla.com/D148538
2023-10-02 14:37:19 +00:00
Oriol Brufau
6c3f92cb85
Further changes required by Servo
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
1ce75ff7dd
style: Unify Gecko and Servo EventState/ElementState bits
...
Add a dom/base/rust crate called just "dom" where we can share these.
Most of the changes are automatic:
s/mozilla::EventStates/mozilla::dom::ElementState/
s/EventStates/ElementState/
s/NS_EVENT_STATE_/ElementState::/
s/NS_DOCUMENT_STATE_/DocumentState::/
And so on. This requires a new cbindgen version to avoid ugly casts for
large shifts.
Differential Revision: https://phabricator.services.mozilla.com/D148537
2023-10-02 14:37:19 +00:00
David Shin
949fd0e172
style: Add parsing for linear easing function and gate it behind pref
...
Differential Revision: https://phabricator.services.mozilla.com/D146839
2023-10-02 14:37:19 +00:00
David Shin
b31be826c4
style: Hook up linear easing calculation for servo and expose it to C++
...
Differential Revision: https://phabricator.services.mozilla.com/D146838
2023-10-02 14:37:19 +00:00
David Shin
6326a384a8
style: Rust side plumbing work for linear easing function
...
Add LinearFunction to TimingFunction. Because the linear function is a
variable list of linear stops, the enum is no longer Copyable.
Differential Revision: https://phabricator.services.mozilla.com/D146837
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
898cafb5a5
style: Use debug_unreachable!() in matches_simple_selector
...
This shrinks the function by avoiding generating rather noisy panic
code.
Depends on D145486
Differential Revision: https://phabricator.services.mozilla.com/D145487
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
2302d828a5
style: Reorder some variants
...
This doesn't make a difference, I was hoping it would allow us to remove the
special-casey code we have here:
https://searchfox.org/mozilla-central/rev/997a56b018662e2940c99bbaf57a6ac9d1aa5422/servo/components/selectors/matching.rs#610-632
But it doesn't. Still I think it doesn't hurt tho, shouldn't change behavior.
Depends on D145485
Differential Revision: https://phabricator.services.mozilla.com/D145486
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
2939bf1a12
style: Simplify a bit hot selector-matching loop
...
Note that element.clone() is just copying a couple pointers.
Have a single place where we compute the next element and check for linky-ness.
This saves a couple checks (very very minor win in the micro-benchmark I've
been looking at, but consistent).
Depends on D145484
Differential Revision: https://phabricator.services.mozilla.com/D145485
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
a21762fc5b
style: Compute hover / active quirk state lazily
...
This makes the inner function much smaller which improves selector-matching
performance very mildly for the benchmarks I've been looking at. Also, this
should help selector matching on quirks mode by only doing this when we
actually find :hover / :active pseudo-classes.
Differential Revision: https://phabricator.services.mozilla.com/D145484
2023-10-02 14:37:19 +00:00
Emilio Cobos Álvarez
653245c94e
style: Avoid some clone()s in selector parsing now that lifetimes are non-lexical
...
Differential Revision: https://phabricator.services.mozilla.com/D123622
2023-10-02 14:37:19 +00:00
Martin Robinson
921987048c
Implement pinch zoom with a display list ( #30446 )
...
In the most recent version of WebRender, the pinch zoom APIs have been
removed. We can recreate this functionality by creating a root display
list with a transform.
2023-10-02 10:24:16 +00:00
Samson
d74d51190a
Update WebGPU CTS ( #30454 )
...
* Fix webgpu-cts import script
* Update webgpu-cts to f2b59e0362
* Updated expectations
2023-09-30 16:28:46 +00:00
Samson
ddc47aa56b
Codegen support multiple interfaces in single webidl file & WebGPU single webidl ( #30448 )
...
* Codegen support multiple interfaces in single webidl file
* Merge GPU*.webidl into WebGPU.webidl
* Update gpu files to use WebGPUBinding module file
2023-09-30 12:30:12 +00:00
Samson
ebd41d4101
Use Foo_Binding instead of FooBinding for namespace modules ( #30447 )
...
* Update Codegen.py to emit Foo_Binding instead of FooBinding
* s/FooBinding/Foo_Binding/g
2023-09-30 00:52:04 +00:00
Samson
67f2f98a93
Add timeout to unit tests on mac ( #30451 )
...
Workaround for https://github.com/servo/servo/issues/30275
2023-09-29 17:30:48 +00:00
dependabot[bot]
528b69b9b0
build(deps): bump ab_glyph from 0.2.21 to 0.2.22 ( #30450 )
...
Bumps [ab_glyph](https://github.com/alexheretic/ab-glyph ) from 0.2.21 to 0.2.22.
- [Release notes](https://github.com/alexheretic/ab-glyph/releases )
- [Commits](https://github.com/alexheretic/ab-glyph/compare/ab-glyph-0.2.21...ab-glyph-0.2.22 )
---
updated-dependencies:
- dependency-name: ab_glyph
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-29 16:51:32 +00:00
dependabot[bot]
6b2edbac18
build(deps): bump winit from 0.28.6 to 0.28.7 ( #30440 )
...
Bumps [winit](https://github.com/rust-windowing/winit ) from 0.28.6 to 0.28.7.
- [Release notes](https://github.com/rust-windowing/winit/releases )
- [Changelog](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-windowing/winit/compare/v0.28.6...v0.28.7 )
---
updated-dependencies:
- dependency-name: winit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-28 23:48:16 +00:00
dependabot[bot]
3e7b127ddf
build(deps): bump wgpu-core from 0.17.0 to 0.17.1 ( #30443 )
...
Bumps [wgpu-core](https://github.com/gfx-rs/wgpu ) from 0.17.0 to 0.17.1.
- [Release notes](https://github.com/gfx-rs/wgpu/releases )
- [Changelog](https://github.com/gfx-rs/wgpu/blob/v0.17.1/CHANGELOG.md )
- [Commits](https://github.com/gfx-rs/wgpu/compare/v0.17.0...v0.17.1 )
---
updated-dependencies:
- dependency-name: wgpu-core
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-28 17:49:00 +00:00
dependabot[bot]
0bf651c1d3
build(deps): bump wgpu-hal from 0.17.0 to 0.17.1 ( #30441 )
...
Bumps [wgpu-hal](https://github.com/gfx-rs/wgpu ) from 0.17.0 to 0.17.1.
- [Release notes](https://github.com/gfx-rs/wgpu/releases )
- [Changelog](https://github.com/gfx-rs/wgpu/blob/v0.17.1/CHANGELOG.md )
- [Commits](https://github.com/gfx-rs/wgpu/compare/v0.17.0...v0.17.1 )
---
updated-dependencies:
- dependency-name: wgpu-hal
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-28 17:33:41 +00:00
dependabot[bot]
54e4da0bfc
build(deps): bump sha2 from 0.10.7 to 0.10.8 ( #30438 )
...
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.10.7 to 0.10.8.
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.7...sha2-v0.10.8 )
---
updated-dependencies:
- dependency-name: sha2
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-28 06:55:38 +00:00
dependabot[bot]
99fd55808c
build(deps): bump warp from 0.3.5 to 0.3.6 ( #30436 )
...
Bumps [warp](https://github.com/seanmonstar/warp ) from 0.3.5 to 0.3.6.
- [Release notes](https://github.com/seanmonstar/warp/releases )
- [Changelog](https://github.com/seanmonstar/warp/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/warp/compare/v0.3.5...v0.3.6 )
---
updated-dependencies:
- dependency-name: warp
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-27 19:10:01 +00:00
dependabot[bot]
c8a32a3433
build(deps): bump thiserror from 1.0.48 to 1.0.49 ( #30437 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.48 to 1.0.49.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.48...1.0.49 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-27 16:59:13 +00:00
Ennui Langeweile
72313d90df
Make the dir
attribute's getter follow the spec ( #30435 )
...
* Refactor the `dir` attribute's getter and setter
* Run `./mach fmt`
* disregard all the previous commits
i'm a genius!
2023-09-27 12:31:27 +00:00
Ennui Langeweile
80d9a2bb4f
Treat the keygen
element as obsolete ( #30429 )
...
* Eradicate the `keygen` element
* Run `./mach fmt`
* Fix relevant Servo test
* Fix outdated manifest
2023-09-26 21:37:46 +00:00
dependabot[bot]
f330cf534d
build(deps): bump syn from 2.0.32 to 2.0.37 ( #30434 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.32 to 2.0.37.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.32...2.0.37 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-26 18:14:16 +00:00
dependabot[bot]
79224b3903
build(deps): bump quote from 1.0.30 to 1.0.33 ( #30432 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.30 to 1.0.33.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.30...1.0.33 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-26 18:10:35 +00:00
dependabot[bot]
c2e04afc05
build(deps): bump fastrand from 2.0.0 to 2.0.1 ( #30433 )
...
Bumps [fastrand](https://github.com/smol-rs/fastrand ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/smol-rs/fastrand/releases )
- [Changelog](https://github.com/smol-rs/fastrand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/fastrand/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: fastrand
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-26 18:05:21 +00:00
Ennui Langeweile
6f0cba0855
Refactor the translatable
attribute lightly ( #30430 )
2023-09-26 05:05:37 +00:00
dependabot[bot]
dff6df8912
build(deps): bump proc-macro2 from 1.0.63 to 1.0.67 ( #30423 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.63 to 1.0.67.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.63...1.0.67 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 17:32:52 +00:00
dependabot[bot]
40ba91a0ea
build(deps): bump rustix from 0.38.13 to 0.38.14 ( #30426 )
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.13 to 0.38.14.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.13...v0.38.14 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 17:32:48 +00:00
dependabot[bot]
6427b8d6de
build(deps): bump xml-rs from 0.8.18 to 0.8.19 ( #30427 )
...
Bumps [xml-rs](https://github.com/kornelski/xml-rs ) from 0.8.18 to 0.8.19.
- [Changelog](https://github.com/kornelski/xml-rs/blob/main/Changelog.md )
- [Commits](https://github.com/kornelski/xml-rs/compare/0.8.18...0.8.19 )
---
updated-dependencies:
- dependency-name: xml-rs
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 17:32:17 +00:00