Oriol Brufau
06aeeeb1f3
Add CSSOM support for CSS layers ( #31481 )
...
Instead of just crashing.
2024-03-03 12:47:39 +00:00
Servo WPT Sync
845f503c34
Sync WPT with upstream (03-03-2024) ( #31482 )
...
* Update web-platform-tests to revision b'1b88c8bd56a924f9865daa15834d444c55dd7327'
* Update expectations
---------
Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-03-03 09:03:40 +00:00
Oriol Brufau
50fdb82246
Fix size of tables in flow layout ( #31455 )
...
* Fix size of tables in flow layout
The contents of a table can make it bigger than what we would expect
from its 'width', 'min-width', 'height' and ' min-height' properties.
Also, 'width: auto' doesn't stretch it to fill the containing block.
We had to refactor the resolution of margins to happen after layout,
otherwise 'auto' margins wouldn't align correctly.
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Feedback
* Consistently use `containing_block_for_table` in table layout
* Update test result
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-03-02 01:39:41 +00:00
dependabot[bot]
c23999941a
build(deps): bump indexmap from 2.2.3 to 2.2.5 ( #31477 )
...
Bumps [indexmap](https://github.com/indexmap-rs/indexmap ) from 2.2.3 to 2.2.5.
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.2.3...2.2.5 )
---
updated-dependencies:
- dependency-name: indexmap
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>
2024-03-01 22:52:21 +00:00
dependabot[bot]
fbf023486a
build(deps): bump bumpalo from 3.15.2 to 3.15.3 ( #31474 )
...
Bumps [bumpalo](https://github.com/fitzgen/bumpalo ) from 3.15.2 to 3.15.3.
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.15.2...3.15.3 )
---
updated-dependencies:
- dependency-name: bumpalo
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>
2024-03-01 19:35:51 +00:00
dependabot[bot]
cbdeb62306
build(deps): bump hermit-abi from 0.3.6 to 0.3.9 ( #31472 )
...
Bumps [hermit-abi](https://github.com/hermit-os/hermit-rs ) from 0.3.6 to 0.3.9.
- [Release notes](https://github.com/hermit-os/hermit-rs/releases )
- [Commits](https://github.com/hermit-os/hermit-rs/commits )
---
updated-dependencies:
- dependency-name: hermit-abi
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>
2024-03-01 18:01:53 +00:00
dependabot[bot]
f4ed89277a
build(deps): bump half from 2.3.1 to 2.4.0 ( #31473 )
...
Bumps [half](https://github.com/starkat99/half-rs ) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/starkat99/half-rs/releases )
- [Changelog](https://github.com/starkat99/half-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/starkat99/half-rs/compare/v2.3.1...v2.4.0 )
---
updated-dependencies:
- dependency-name: half
dependency-type: indirect
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>
2024-03-01 17:45:20 +00:00
dependabot[bot]
3597870298
build(deps): bump crossbeam-channel from 0.5.11 to 0.5.12 ( #31478 )
...
Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam ) from 0.5.11 to 0.5.12.
- [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/crossbeam-channel-0.5.11...crossbeam-channel-0.5.12 )
---
updated-dependencies:
- dependency-name: crossbeam-channel
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>
2024-03-01 17:15:54 +00:00
dependabot[bot]
2f6edda90b
build(deps): bump image from 0.24.8 to 0.24.9 ( #31475 )
...
Bumps [image](https://github.com/image-rs/image ) from 0.24.8 to 0.24.9.
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/compare/v0.24.8...v0.24.9 )
---
updated-dependencies:
- dependency-name: image
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>
2024-03-01 16:55:01 +00:00
dependabot[bot]
691a0f17cb
build(deps): bump socket2 from 0.5.5 to 0.5.6 ( #31471 )
...
Bumps [socket2](https://github.com/rust-lang/socket2 ) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/rust-lang/socket2/releases )
- [Changelog](https://github.com/rust-lang/socket2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/socket2/compare/v0.5.5...v0.5.6 )
---
updated-dependencies:
- dependency-name: socket2
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>
2024-03-01 16:42:19 +00:00
Samson
b785aea2cf
Update gstreamer crates to 0.22 ( #31465 )
2024-03-01 11:45:43 +00:00
Oriol Brufau
2b1d342102
Enable more css tests ( #31469 )
...
* Enable more css tests
In particular, these directories are no longer skipped:
- CSS1 (has no tests)
- css-box (except margin-trim)
- css-cascade
- css-display (except run-in)
- css-easing
- css-env
- css-lists
- css-namespaces
- css-overflow
- css-pseudo
- css-sizing (except aspect-ratio and contain-intrinsic-size)
- css-syntax
- reference
- support (has no tests)
* Sort list properly
* Explicitly list skipped directories
* Do not skip css tests by default
* Add expectations
2024-03-01 07:49:39 +00:00
Smitty
0beec63c86
script: Implement <meta http-equiv="refresh">
( #31468 )
...
* script: Implement <meta http-equiv="refresh">
* Address review comments
2024-03-01 07:42:18 +00:00
dependabot[bot]
ee122acdf4
build(deps): bump syn from 2.0.50 to 2.0.52 ( #31459 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.50 to 2.0.52.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.50...2.0.52 )
---
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>
2024-02-29 22:16:08 +00:00
dependabot[bot]
160a4b7482
build(deps): bump log from 0.4.20 to 0.4.21 ( #31461 )
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.20 to 0.4.21.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.20...0.4.21 )
---
updated-dependencies:
- dependency-name: log
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>
2024-02-29 22:11:18 +00:00
dependabot[bot]
62dcb4a288
build(deps): bump rayon from 1.8.1 to 1.9.0 ( #31460 )
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.8.1 to 1.9.0.
- [Changelog](https://github.com/rayon-rs/rayon/blob/main/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.8.1...rayon-core-v1.9.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>
2024-02-29 18:37:57 +00:00
dependabot[bot]
b66a319b89
build(deps): bump tempfile from 3.10.0 to 3.10.1 ( #31463 )
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.10.0 to 3.10.1.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.10.0...v3.10.1 )
---
updated-dependencies:
- dependency-name: tempfile
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>
2024-02-29 17:31:56 +00:00
dependabot[bot]
e55c2c05f2
build(deps): bump darling from 0.20.6 to 0.20.8 ( #31458 )
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.6 to 0.20.8.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.20.6...v0.20.8 )
---
updated-dependencies:
- dependency-name: darling
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>
2024-02-29 16:56:36 +00:00
Oriol Brufau
5f399139ae
Fix percentages in CSS tables ( #31454 )
...
100% is stored as Percent(1.), not as percent(100.)
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-02-29 15:21:14 +00:00
Martin Robinson
127aa657c2
layout: Add initial support for row height distribution ( #31421 )
...
This change adds a version of row height distribution that follows the
distribtuion algorithm used for tables in Blink's LayoutNG. This is just
an intermediate step toward implementing a distribution algorithm for
both rows and columns more similar to Layout NG.
The CSS Table 3 specification is often wrong with regard to web
compatability, which is why we have abandoned it in favor of the Layout
NG algorithm for row height distribution. this work.
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-02-29 12:12:54 +00:00
Oriol Brufau
31cfaf290d
Update Stylo to 2023-07-23 ( #31437 )
...
* Update Stylo to 2023-07-23
* to_shmem should be local when working with Stylo
* Fixup for https://phabricator.services.mozilla.com/D180769
* Fixup for https://phabricator.services.mozilla.com/D181125
* Fixup for https://phabricator.services.mozilla.com/D181162
* Fixup for https://phabricator.services.mozilla.com/D181798
* Fixup for https://phabricator.services.mozilla.com/D182514
* Fixup for https://phabricator.services.mozilla.com/D182539
* Update test expectations
2024-02-29 10:23:53 +00:00
Martin Robinson
6eb96290fa
mach: Speed up taplo
runs on MacOS ( #31452 )
...
`taplo` is the TOML formatter that we use. It seems to be using a very
slow directory walking mechanism on MacOS. This change works around that
issue by explicitly listing globs of TOML files to format and check.
Before:
```text
real 0m17.632s
user 0m2.164s
sys 0m6.916s
```
After:
```text
real 0m1.519s
user 0m1.391s
sys 0m0.112s
```
2024-02-29 10:03:19 +00:00
Samson
9a9abe9152
Add use-system-allocator
to not use jemalloc ( #31443 )
...
* Add `use-system-allocator` feature
* Allow `servo_allocator/use-system-allocator` on servoshell
2024-02-29 08:43:03 +00:00
Samson
cd92a17c5e
ci: Update remaining GitHub actions to versions using Node.js 20 ( #31450 )
...
* Update sccache action
* Update baptiste0928/cargo-install
* Update github-script
* Update actions/setup-java
* Update nick-fields/retry
2024-02-29 08:24:38 +00:00
Smitty
ffc9730a48
tidy: Fix WHATWG replacement links ( #31449 )
2024-02-29 06:02:41 +00:00
Sebastian C
51b3313854
fix invalid video poster image loading from panicking ( #31447 )
...
This fixed #31438 . When an image is loaded from cache, it will
load a placeholder if the url is not a valid image url. This
may be unexpected when using the image cache and specifying
UsePlaceholder::No but that has no effect on loading an image
not in the cache.
Signed-off-by: Sebastian C <sebsebmc@gmail.com>
2024-02-28 23:04:20 +00:00
Alex Touchet
e2e30bcbb1
Remove leftover layout_traits references ( #31448 )
2024-02-28 23:01:03 +00:00
Shamir Khodzha
201cdbab17
webaudio: Throw when setting invalid automationRate on AudioBufferSourceNode ( #26469 )
2024-02-28 21:24:08 +00:00
Smitty
5c87fe940e
layout: Add an implementation of process_resolved_font_style_query
for Layout 2020 ( #31436 )
...
* layout: support setting canvas font
Signed-off-by: syvb <me@iter.ca>
* Update 2d.reset.state.font.html test
Signed-off-by: syvb <me@iter.ca>
---------
Signed-off-by: syvb <me@iter.ca>
2024-02-28 21:00:17 +00:00
cybai (Haku)
a89bacb7c5
Update overrideMimeType and final-charset to match xhr spec ( #29812 )
...
* Update overrideMimeType to match xhr spec
* Update final-encoding to match xhr spec
* Fix an issue and add more comments
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-02-28 20:26:43 +00:00
Martin Robinson
5ba29c20ac
layout: Turn on synthetic small-caps for layout 2020 ( #31435 )
...
Synthetic small caps is supported by the font subsystem, but this is
disabled in Layout 2020. We can turn this on to bring support to parity
with the old layout system.
In addition to turning on synthetic small-caps this change also improves
the way that they work. Before, synthetic small caps meant that every
character was a small version of capitalized character. After this
change, capital letters are larger than small caps versions of small
letters -- matching other browsers and the common expectation of how
small caps works.
2024-02-28 15:09:26 +00:00
Martin Robinson
98bd306816
mach: Do not use unstable rust for rustfmt
( #31441 )
...
We can use stable rust if we pass the unstable configuration as
command-line arguments to rustfmt itself. This prevents needing to
install an unstable rust toolchain.
The one downside here is that it doesn't seem that "ignore" is
supported so we have to start formatting the files in "third_party."
This shouldn't be a huge issue because we don't plan to check much more
rust code into those directories.
2024-02-28 13:53:04 +00:00
dependabot[bot]
2afd5431b1
build(deps): bump mako from 1.1.2 to 1.2.2 in /python ( #31434 )
...
Bumps [mako](https://github.com/sqlalchemy/mako ) from 1.1.2 to 1.2.2.
- [Release notes](https://github.com/sqlalchemy/mako/releases )
- [Changelog](https://github.com/sqlalchemy/mako/blob/main/CHANGES )
- [Commits](https://github.com/sqlalchemy/mako/commits )
---
updated-dependencies:
- dependency-name: mako
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 12:43:04 +00:00
Delan Azabani
6a3cd65bf2
Move servoshell code into an internal lib crate ( #31439 )
...
* Move servoshell code into an internal lib crate
* Fix name of Android port
2024-02-28 11:46:12 +00:00
Delan Azabani
faf754dfa6
Move Stylo to its own repo ( #31350 )
...
* Remove packages that were moved to external repo
* Add workspace dependencies pointing to 2023-06-14 branch
* Fix servo-tidy.toml errors
* Update commit to include #31346
* Update commit to include servo/stylo#2
* Move css-properties.json lookup to target/doc/stylo
* Remove dependency on vendored mako in favour of pypi dependency
This also removes etc/ci/generate_workflow.py, which has been unused
since at least 9e71bd6a70
.
* Add temporary code to debug Windows test failures
* Fix failures on Windows due to custom target dir
* Update commit to include servo/stylo#3
* Fix license in tests/unit/style/build.rs
* Document how to build with local Stylo in Cargo.toml
2024-02-27 15:39:06 +00:00
Oriol Brufau
b07505417e
Fix percentages in the padding of a table-cell ( #31430 )
2024-02-27 13:28:23 +00:00
Mukilan Thiyagarajan
b9e217c480
Upgrade surfman to 0.9.1 ( #31431 )
...
* upgrade surfman to 0.9.1
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* remove 'libegl1-mesa-dev' from runtime dependencies
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
---------
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2024-02-27 11:53:49 +00:00
atbrakhi
304ab9b09c
layout: make AxisResult
, Anchor
& AbsoluteAxisSolver
use Au
( #31395 )
...
* make AxisResult and Anchor use Au
* Avoid some .into()
* review fix
* review update
---------
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-02-26 18:11:33 +00:00
Oriol Brufau
a97a04d84c
Support <div align="..."> and <center> in block layout ( #31423 )
...
As per HTML [1], <div align="..."> and <center> should align descendants
to the left/center/right. This is similar to having 'auto' margins [2],
but without changing their used values [3].
[1]: https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3
[2]: https://html.spec.whatwg.org/multipage/rendering.html#align-descendants
[3]: https://github.com/whatwg/html/issues/10149
2024-02-26 18:00:01 +00:00
Martin Robinson
e5598590ba
layout: Add line height from preserved segment breaks in quirks mode ( #31419 )
...
In quirks mode, preserved segment breaks should add line height to
lines. This matches the behavior of WebKit and Blink, but not Gecko.
This also handles the special-case of `<br>` elements, which are
implemented with preserved segment breaks via `white-space: pre-line`.
This is an implementation detail though because `<br>` has a special
behavior if the line isn't empty -- it doesn't add any line height in
this case.
2024-02-26 17:26:41 +00:00
Taym Haddadi
a9a7e8a5cf
Rename buffer_source_type to buffer_source ( #31426 )
...
* Rename buffer_source_type to buffer_source
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Code format
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-02-26 14:21:46 +00:00
Alex Touchet
ef8a0b7f7b
Update time ( #31424 )
2024-02-25 17:18:35 +00:00
Taym Haddadi
d0b663800f
WedIDL: bring dom/bindings/typedarray further in line with spec ( #31375 )
...
* WedIDL: bring dom/bindings/typedarray further in line with spec
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Rename HeapBufferSourceTypes to HeapBufferSource
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* fmt code
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-02-25 12:13:17 +00:00
Servo WPT Sync
32f1d07323
Update web-platform-tests to revision b'a39b23cb150d1ca3eddf7f2097ffe792a5f911e5' ( #31425 )
2024-02-25 06:16:30 +00:00
Martin Robinson
0d4e4748c4
layout: Place absolutes in IFCs at their hypothetical static position ( #31418 )
...
Absolutes need to be placed at their hypothetical position as if the
position value was static. This position differs based on the value they
had before blockification. The code for placing absolutes was taking
into account the original display for the inline value, but not for the
block value. A static `display: block` box would placed at a new block
position past the end of the linebox.
2024-02-23 17:55:18 +00:00
Josh Matthews
41a41b3d8f
Treat video elements as replaced content and render the current frame. ( #31412 )
...
* Treat video elements as replaced content and render the current frame.
* Update test results.
2024-02-23 17:34:08 +00:00
Oriol Brufau
38d2ad9592
Support <div align="..."> and <center> on inline layout ( #31388 )
...
As per HTML [1], <div align="..."> and <center> should behave as if they
had the text-align property set to the corresponding value.
Servo implements that as internal text-align values because there should
the extra effect of aligning block descendants, but that part has not
been implemented yet. This patch only adds support for inline layout.
[1]: https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3
2024-02-23 15:36:36 +00:00
Mukilan Thiyagarajan
0a8b69879a
ci: Fix nightly release action ( #31420 )
...
* ci: check result of dependent jobs explicitly
Signed-off-by: Mukilan Thiyagarajan <me@mukilan.in>
* ci: use ubuntu latest image in more jobs
Signed-off-by: Mukilan Thiyagarajan <me@mukilan.in>
---------
Signed-off-by: Mukilan Thiyagarajan <me@mukilan.in>
2024-02-23 14:55:00 +00:00
Josh Matthews
b182bdfa52
Fix crash when closing window containing video element ( #31413 )
...
* Forbid casting DOM objects when JS runtime is shutting down.
* Remove media controls from document when element is removed from the tree.
2024-02-23 12:18:49 +00:00
Delan Azabani
e078a99817
style: Remove dependency on servo_config (was #31409 ) ( #31411 )
...
* Initial style_config crate
* Remove servo_config from style
* Remove servo_config from tests/unit/style
* Plumb servo prefs into stylo
* Clean up dependencies
* Fix formatting
* Add unit tests
* Add comment about avoiding clone
* Fix bug where getters acquire unnecessary write lock
* Remove stray dbg!()
* Plumb default prefs into Stylo as well
* Add comments about logging and mapping new pref types
2024-02-23 08:40:54 +00:00