aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update raw lags path for WPT import (#31714)Samson2024-03-171-2/+2
| | | I forgot to do this in #31616
* Updated comment with 'layout_traits' to 'script_layout_interface' (#31707)Tumuhairwe2024-03-151-3/+3
| | | | | | | | | | | * Updated comment with 'layout_traits' to 'script_layout_interface' * Rewrap text * Remove trailing whitespace --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Don't null out the baselines of anonymous tables (#31704)Oriol Brufau2024-03-1530-63/+0
|
* documentation: Add instructions for creating a shallow clone of the Servo ↵Richard Dushime2024-03-151-1/+7
| | | | | | | | | | | | | | | | | repository (#31697) * Add support for partial and shallow clones for contributors with limited internet access * Fix requested changes * small typo * Removed Trailing spaces and Fixed req changes * Small fixes to the new documentation --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* build(deps): bump tokio-test from 0.4.3 to 0.4.4 (#31703)dependabot[bot]2024-03-151-2/+2
| | | | | | | | | | | | | | | Bumps [tokio-test](https://github.com/tokio-rs/tokio) from 0.4.3 to 0.4.4. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-test-0.4.3...tokio-test-0.4.4) --- updated-dependencies: - dependency-name: tokio-test 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>
* clippy: Fix warnings in `components/script` (#31700)Richard Dushime2024-03-152-6/+6
| | | | | * Fix warnings: immediate dereferencing of references and unneeded statement * Fix warnings in Components/script
* layout: Add basic support for `getClientRects()` queries (#31696)Martin Robinson2024-03-1515-71/+48
| | | | | | This adds basic support for `getClientRects()` by sharing code with the implementation of `getBoundingClientRect()`. In addition to sharing code, it also shares all of the bugs. Primarily, scrolilng positions are not taken into account when return boundary rectangles.
* build(deps): bump tokio-stream from 0.1.14 to 0.1.15 (#31702)dependabot[bot]2024-03-151-2/+2
| | | | | | | | | | | | | | | Bumps [tokio-stream](https://github.com/tokio-rs/tokio) from 0.1.14 to 0.1.15. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-stream-0.1.14...tokio-stream-0.1.15) --- updated-dependencies: - dependency-name: tokio-stream 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>
* build(deps): bump h2 from 0.3.24 to 0.3.25 (#31701)dependabot[bot]2024-03-151-2/+2
| | | | | | | | | | | | | | | | Bumps [h2](https://github.com/hyperium/h2) from 0.3.24 to 0.3.25. - [Release notes](https://github.com/hyperium/h2/releases) - [Changelog](https://github.com/hyperium/h2/blob/v0.3.25/CHANGELOG.md) - [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.3.25) --- updated-dependencies: - dependency-name: h2 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>
* rustdoc: Fix errors in `components` and `ports` (#31654)Tumuhairwe2024-03-154-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed warnings in components/gfx/text/shaping/harfbuzz-rs components/layout_2020/fragment_tree ports/servoshell/minibrowser.rs * Fixed warnings in components/gfx/text/shaping/harfbuzz-rs components/layout_2020/fragment_tree ports/servoshell/minibrowser.rs. * Update minibrowser.rs Returned "if" back to "iff" * Update minibrowser.rs Changed ```BrowserManager``` to ```WebViewManager``` * Update fragment.rs Changed ```[SequentialLayoutState]``` to ```[crate::flow::float::SequentialLayoutState]``` * Update fragment.rs Balanced the length of paragraph lines in fragment.rs * Fix tidy errors --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Allow pre-wrap whitespace to hang at the end of the line (#31681)Oriol Brufau2024-03-1524-64/+54
| | | | | * Allow pre-wrap whitespace to hang at the end of the line * Use bitflags
* Update new issue URL in SECURITY.md (#31698)Manuel Rego Casasnovas2024-03-152-18/+1
| | | | | | | * Update new issue URL in SECURITY.md Update URL for new issue so it uses the security template: https://github.com/servo/servo/issues/new?template=security-report.md * Link to https://github.com/servo/servo/security/advisories/new instead
* Obey white-space when intrinsically sizing an IFC (#31660)Oriol Brufau2024-03-1524-72/+71
| | | | | | | | | | | | | | | | | The old logic was assuming that all whitespace was a break opportunity, and that no newlines would be preserved. Note that text shaping considers the advance of a newline to be the same as a space. This was problematic because if we have a segment with a preserved space and newline, only the advance of the space should contrinute to the size of the block container. Therefore, I'm changing the breaker logic in other to have newline characters in their own segment. Then glyph_run_is_whitespace_ending_with_preserved_newline can just be renamed to glyph_run_is_preserved_newline. This patch is still not perfect because it doesn't check allow_wrap(), so `nowrap` is treated like `normal`, and `pre-wrap` like `pre`.
* Add issue templates (#31693)Manuel Rego Casasnovas2024-03-153-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add issue templates This will allow to label new issues when filled depending on their type. * Update .github/ISSUE_TEMPLATE/bug_report.md Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update .github/ISSUE_TEMPLATE/bug_report.md Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update .github/ISSUE_TEMPLATE/bug_report.md Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update .github/ISSUE_TEMPLATE/feature_request.md Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update .github/ISSUE_TEMPLATE/feature_request.md Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update .github/ISSUE_TEMPLATE/feature_request.md Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update .github/ISSUE_TEMPLATE/security-report.md Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update .github/ISSUE_TEMPLATE/security-report.md Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update .github/ISSUE_TEMPLATE/security-report.md Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Fix typo --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* clippy: Fix remaining warnings in `gfx` for MacOS (#31669)Martin Robinson2024-03-159-69/+66
|
* Add RUSTC env to clippy command (#31694)eri2024-03-151-1/+3
| | | | | * python: add RUSTC env to clippy command * fix: pass env explicitly
* Escaped reporting (#31691)Samson2024-03-151-3/+6
|
* Fix typo: changed seperator to separator (#31685)Munish Mummadi2024-03-151-2/+2
|
* Add gstreamer plugins good/ugly for better codec support (#31687)Delan Azabani2024-03-153-3/+10
| | | | | * NixOS: add gst-plugins-{good,ugly} for better codec support * Add gstreamer plugins good/ugly to all other package lists
* fonts: Add Noto Sans CJK fonts to the Linux fallback list (#31668)Richard Dushime2024-03-151-0/+10
| | | | | * Add Noto Sans CJK fonts to the fallback list * Fix test-tidy errors
* Implement HTMLStyleElement.disabled attribute (#31682)Oriol Brufau2024-03-1410-31/+15
| | | https://html.spec.whatwg.org/multipage/#dom-style-disabled
* dependencies: Upgrade to WebRender 0.64 (#31486)Martin Robinson2024-03-14102-600/+704
| | | | | | | | | This brings the version of WebRender used in Servo up-to-date with Gecko upstream. The big change here is that HiDPI is no longer handled via WebRender. Instead this happens via a scale applied to the root layer in the compositor. In addition to this change, various changes are made to Servo to adapt to the new WebRender API. Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* build(deps): bump smallbitvec from 2.5.1 to 2.5.2 (#31674)dependabot[bot]2024-03-142-3/+3
| | | | | | | | | | | | | | | Bumps [smallbitvec](https://github.com/servo/smallbitvec) from 2.5.1 to 2.5.2. - [Release notes](https://github.com/servo/smallbitvec/releases) - [Commits](https://github.com/servo/smallbitvec/compare/v2.5.1...v2.5.2) --- updated-dependencies: - dependency-name: smallbitvec 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>
* build(deps): bump system-deps from 6.2.0 to 6.2.1 (#31672)dependabot[bot]2024-03-141-2/+2
| | | | | | | | | | | | | | | | Bumps [system-deps](https://github.com/gdesmott/system-deps) from 6.2.0 to 6.2.1. - [Release notes](https://github.com/gdesmott/system-deps/releases) - [Changelog](https://github.com/gdesmott/system-deps/blob/main/CHANGELOG.md) - [Commits](https://github.com/gdesmott/system-deps/compare/system-deps@6.2.0...v6.2.1) --- updated-dependencies: - dependency-name: system-deps 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>
* constellation: allow event tracing to be configured with RUST_LOG (#31659)Delan Azabani2024-03-143-7/+267
|
* Cleanup UA styles for anonymous table rows and cells (#31661)Oriol Brufau2024-03-141-8/+0
| | | | | These properties were being set to their initial value, this wasn't needed because they are non-inherited properties and there isn't anything else setting them.
* fonts: Add `FontIdentifier` and `LocalFontIdentifier` (#31658)Martin Robinson2024-03-1417-316/+361
| | | | | | | | | | | | | | | | | | | Instead of using a simple `Atom` to identify a local font, use a data structure. This allows us to carry more information necessary to identify a local font (such as a path on MacOS). We need this for the new version of WebRender, as fonts on MacOS now require a path. This has a lot of benefits: 1. We can avoid loading fonts without paths on MacOS, which should avoid a lot of problems with flakiness and ensure we always load the same font for a given identifier. 2. This clarifies the difference between web fonts and local fonts, though there is more work to do here. 3. This avoid a *lot* of font shenanigans, such as trying to work backwards from the name of the font to the path of the font we actually matched. In general, we can remove a lot of code trying to accomplish these shenanigans. 4. Getting the font bytes always returns an `Arc` now avoiding an extra full font copy in the case of Canvas.
* fix: missing thread name when spawning (#31656)Ngo Iok Ui (Wu Yu Wei)2024-03-143-28/+36
| | | | | * Add missing thread name when spawning * Update namings
* layout: Properly parent table-row and table-row-group (#31619)Martin Robinson2024-03-1423-155/+434
| | | | | | | | Put table cell content fragments into a hieararchy of fragments that include their table row and table row group fragments. This ensures that things like relative positioning and transforms set on rows and row groups properly affect cells and cell content. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
* Allow finishing anonymous inline-table at the end of inline elements (#31650)Oriol Brufau2024-03-145-0/+50
| | | This avoids inserting it outside of its parent.
* layout: IFCs should not always be marked as containing floats (#31641)Martin Robinson2024-03-142-2/+4
| | | | | | | Marking all IFCs as containing floats shouldn't change layout results, but does prevent parallel layout in some cases. This change fixes an issue where we were marking all IFCs as containing floats. Fixes #31540.
* servoshell: allow event tracing to be configured with RUST_LOG (#31657)Delan Azabani2024-03-144-19/+239
| | | | | | | | | | | * servoshell: allow event tracing to be configured with RUST_LOG * Move docs to same file as target prefixes * Avoid requiring macro callers to use LogTarget trait * Clean up macro call in app.rs * Rename macros to reflect value types
* End ongoing IFC when inserting anonymous block-level table (#31606)Oriol Brufau2024-03-134-0/+45
| | | | So that the table appears after preceding inline-level contents. Fixes #31603.
* rustdoc: Fix warnings in `components/layout_2020` (#31647)Aarya Khandelwal2024-03-131-2/+2
| | | | | * Added a : to make it a clickable link * changed block_offset_of_parent to parent_offset , to make it a clickable link.
* rusdoc: Fix `idl` warning in components/script/dom/bindings (#31643)Oluwatobi Sofela2024-03-131-2/+2
| | | | | * rusdoc: Add valid domstring link * rustdoc: Replace unused idl link ref
* build(deps): bump bytemuck from 1.14.3 to 1.15.0 (#31645)dependabot[bot]2024-03-131-2/+2
| | | | | | | | | | | | | | | Bumps [bytemuck](https://github.com/Lokathor/bytemuck) from 1.14.3 to 1.15.0. - [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md) - [Commits](https://github.com/Lokathor/bytemuck/compare/v1.14.3...v1.15.0) --- updated-dependencies: - dependency-name: bytemuck 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>
* rustdoc: Fix warnings in `components/layout_2020` (#31640)Aarya Khandelwal2024-03-131-3/+3
| | | | | * Changed LineItems to LineItem to make it a clickable link * No variant named Anonymous is present in Fragment.
* rustdoc: Add some basic Safety sections to unsafe functions (#31639)Martin Robinson2024-03-133-0/+22
|
* Fix vertical alignment at the root of an IFC (#31636)Oriol Brufau2024-03-137-58/+223
| | | | | | | | | | | | | | At the root of an inline formatting context, we used its vertical-align in order to compute the strut. That was wrong, since vertical-align on a block container shouldn't affect the contents, it should only affect the alignment of the block container (if it's inline-level) within the parent IFC. This was only working well if the block container was block-level, since effective_vertical_align_for_inline_layout returned `baseline` for block-level boxes. Instead of the outer display type, this patch changes the logic to check whether we are at the root of the IFC.
* clippy: Fix warnings in `components/net` (#31626)eri2024-03-138-53/+54
| | | | | * clippy: fix warnings in `components/net` * fix: review comments
* rustdoc: Fix warnings in `components/script/dom` (#31632)Azhar Ismagulova2024-03-132-3/+5
| | | | | | | | | | | | | | | * fix: fixed warnings in components/script/dom * fix: resolved comment by setting explicit link to HTMLConstructor * fix: changed the format of WHATWG link * Fix line breaking * Remove trailing white space --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* layout: Propagate overflow values from `<body>` to root element (#31618)Martin Robinson2024-03-1317-27/+82
| | | | | | | The specification gives instructions for how these values should be propagated. The other big changs here is that they aren't applied to the `<body>`. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
* clippy: Fix assorted warnings in `components/` (#31628)eri2024-03-1314-98/+87
| | | | | | | * clippy: fix assorted warnings in `components/` * fix: new and default * fix: review comments
* layout: make `margin` in `pbm` use app unit (#31621)atbrakhi2024-03-138-114/+119
| | | | | | | | | | | * make margin in pbm use app unit * Simplification * Consistently resolve inline margins as Au, like block margins --------- Co-authored-by: Oriol Brufau <obrufau@igalia.com>
* Update FUNDING.yml (#31633)Manuel Rego Casasnovas2024-03-131-0/+1
| | | Add GitHub sponsors
* build(deps): bump proc-macro2 from 1.0.78 to 1.0.79 (#31631)dependabot[bot]2024-03-121-2/+2
| | | | | | | | | | | | | | | Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.78 to 1.0.79. - [Release notes](https://github.com/dtolnay/proc-macro2/releases) - [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.78...1.0.79) --- 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>
* build(deps): bump anyhow from 1.0.80 to 1.0.81 (#31630)dependabot[bot]2024-03-121-2/+2
| | | | | | | | | | | | | | | Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.80 to 1.0.81. - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.80...1.0.81) --- updated-dependencies: - dependency-name: anyhow 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>
* build(deps): bump thiserror from 1.0.57 to 1.0.58 (#31629)dependabot[bot]2024-03-121-4/+4
| | | | | | | | | | | | | | | Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.57 to 1.0.58. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.57...1.0.58) --- 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>
* clippy: Fix warnings in `components/shared` (#31627)eri2024-03-1211-50/+36
| | | | | | | * clippy: fix warnings in `components/shared` * fix: formatting derive * fix: rename new to default
* Fix clippy warnings in components/third_party (#31623)Mucha Naibei2024-03-127-46/+36
|