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
dependabot[bot]
0adb9c0f5b
build(deps): bump semver from 1.0.18 to 1.0.19 ( #30425 )
...
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.18 to 1.0.19.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.18...1.0.19 )
---
updated-dependencies:
- dependency-name: semver
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:23:54 +00:00
dependabot[bot]
3d81252c35
build(deps): bump gpu-descriptor-types from 0.1.1 to 0.1.2 ( #30424 )
...
Bumps [gpu-descriptor-types](https://github.com/zakarumych/gpu-descriptor ) from 0.1.1 to 0.1.2.
- [Changelog](https://github.com/zakarumych/gpu-descriptor/blob/master/CHANGELOG.md )
- [Commits](https://github.com/zakarumych/gpu-descriptor/commits )
---
updated-dependencies:
- dependency-name: gpu-descriptor-types
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:20:19 +00:00
Fabrice Desré
38c91b836a
Dedupe ron and base64 ( #30415 )
2023-09-23 11:30:57 +00:00
Alex Touchet
2c3f7c0156
De-dupe gl_generator ( #30408 )
2023-09-23 00:21:25 +00:00
dependabot[bot]
bb56765f25
build(deps): bump rayon from 1.7.0 to 1.8.0 ( #30414 )
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.7.0 to 1.8.0.
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.7.0...rayon-core-v1.8.0 )
---
updated-dependencies:
- dependency-name: rayon
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-22 17:42:58 +00:00
dependabot[bot]
b20ce6a22f
build(deps): bump tracing from 0.1.29 to 0.1.37 ( #30413 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.29 to 0.1.37.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.29...tracing-0.1.37 )
---
updated-dependencies:
- dependency-name: tracing
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-22 17:13:06 +00:00
dependabot[bot]
b0c65e5f0e
build(deps): bump libc from 0.2.147 to 0.2.148 ( #30412 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.147 to 0.2.148.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.147...0.2.148 )
---
updated-dependencies:
- dependency-name: libc
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-22 17:13:00 +00:00
dependabot[bot]
4eabee6e43
build(deps): bump sha1 from 0.10.5 to 0.10.6 ( #30410 )
...
Bumps [sha1](https://github.com/RustCrypto/hashes ) from 0.10.5 to 0.10.6.
- [Commits](https://github.com/RustCrypto/hashes/compare/sha1-v0.10.5...sha1-v0.10.6 )
---
updated-dependencies:
- dependency-name: sha1
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-22 16:56:02 +00:00
dependabot[bot]
2ed6a69266
build(deps): bump cocoa-foundation from 0.1.0 to 0.1.2 ( #30411 )
...
Bumps [cocoa-foundation](https://github.com/servo/core-foundation-rs ) from 0.1.0 to 0.1.2.
- [Commits](https://github.com/servo/core-foundation-rs/compare/cocoa-foundation-v0.1.0...core-graphics-types-v0.1.2 )
---
updated-dependencies:
- dependency-name: cocoa-foundation
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-22 16:45:14 +00:00
dependabot[bot]
b8c7088728
build(deps): bump thiserror from 1.0.38 to 1.0.48 ( #30409 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.38 to 1.0.48.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.38...1.0.48 )
---
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-22 16:35:47 +00:00