Repository navigation
Conversation
Loirooriol
approved these changes
Nov 13, 2026
|
|
||
| let mut root_fragments = independent_layout.fragments; | ||
|
|
||
| let root_fragments = independent_layout.fragments; |
Contributor
There was a problem hiding this comment.
Do the into_physical_fragments() here to avoid allocating a temporary vector below?
Suggested change
| let root_fragments = independent_layout.fragments; | |
| let mut root_fragments = independent_layout.fragments.into_physical_fragments( | |
| self.initial_containing_block_style.writing_mode, | |
| initial_containing_block_size, | |
| ); |
Comment on lines
+486
to
+489
| let container_size = LogicalVec2 { | ||
| inline: containing_block_for_children.inline_size(), | ||
| block: resolved_block_size, | ||
| }; |
Contributor
There was a problem hiding this comment.
May be clearer to name it replaced_size, calculate it first, and then derive widget_cb from it.
Suggested change
| let container_size = LogicalVec2 { | |
| inline: containing_block_for_children.inline_size(), | |
| block: resolved_block_size, | |
| }; | |
| let replaced_size = LogicalVec2 { | |
| inline: containing_block_for_children.inline_size(), | |
| block: resolved_block_size, | |
| }; | |
| let widget_cb = ContainingBlock { | |
| size: ContainingBlockSize::new( | |
| replaced_size.inline, | |
| SizeConstraint::Definite(replaced_size.block), | |
| ), | |
| style: &self.base.style, | |
| }; |
This change is the first step to allowing the collection of fragments and their logical rectangles when building `BoxFragment` and `PositioningFragment`. Currently all producers just return a list of fragments, but we will gradually remove all instances of `FragmentChildren::PhysicalDeprecated`. Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Oriol Brufau <[email protected]>
mrobinson
force-pushed
the
layout-allow-collecting-layout-and-logical-rect
branch
from
November 14, 2026 09:49
d60de75 to
a9bba6a
Compare
mrobinson
enabled auto-merge
November 14, 2026 09:50
mrobinson
deleted the
layout-allow-collecting-layout-and-logical-rect
branch
November 14, 2026 16:12
SimonSapin
added a commit
to SimonSapin/servo
that referenced
this pull request
Nov 16, 2026
Follow up to servo#49898 Part of servo#2560 Testing: WPT Signed-off-by: Simon Sapin <[email protected]>
SimonSapin
added a commit
to SimonSapin/servo
that referenced
this pull request
Nov 17, 2026
Follow up to servo#49898 Part of servo#2560 Testing: WPT Signed-off-by: Simon Sapin <[email protected]>
mrobinson
pushed a commit
to SimonSapin/servo
that referenced
this pull request
Nov 18, 2026
Follow up to servo#49898 Part of servo#2560 Testing: WPT Signed-off-by: Simon Sapin <[email protected]>
willypuzzle
pushed a commit
to willypuzzle/servo
that referenced
this pull request
Nov 18, 2026
This change continues the conversion of various layout modes to collect logical rectangles, only converting to physical rectangles when the final size of their container is known. Follow up to servo#49898 Testing: One new WPT failure due to lacking full orthogonal flow support. --------- Signed-off-by: Simon Sapin <[email protected]> Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Martin Robinson <[email protected]>
SimonSapin
added a commit
to SimonSapin/servo
that referenced
this pull request
Nov 23, 2026
Follow up to servo#49898 Part of servo#2560 Testing: WPT Signed-off-by: Simon Sapin <[email protected]>
RichardTjokroutomo
pushed a commit
to RichardTjokroutomo/servo
that referenced
this pull request
Nov 25, 2026
…#49968) Follow up to servo#49898 Part of servo#2560 Testing: WPT --------- Signed-off-by: Simon Sapin <[email protected]>
mrobinson
pushed a commit
to mrobinson/servo
that referenced
this pull request
Nov 26, 2026
…o#50065) Follow up to servo#49898 Part of servo#2560 Closes servo#49968 and closes servo#50016 (merges them because of suspected interdependence) Testing: WPT --------- Signed-off-by: Simon Sapin <[email protected]> Signed-off-by: Oriol Brufau <[email protected]> Co-authored-by: Oriol Brufau <[email protected]>
devin-ai-integration Bot
pushed a commit
to baigojahanzaib/servo
that referenced
this pull request
Nov 28, 2026
…#49968) Follow up to servo#49898 Part of servo#2560 Testing: WPT --------- Signed-off-by: Simon Sapin <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change is the first step to allowing the collection of fragments
and their logical rectangles when building
BoxFragmentandPositioningFragment. Currently all producers just return a list offragments, but we will gradually remove all instances of
FragmentChildren::PhysicalDeprecated.Testing: This should not change observable behavior, so should
be covered by existing tests.