layout: Ensure accurate FragmentFlags when starting BoxTree layout from IFC - #46033
Merged
Merged
Conversation
…layout from IFC This change ensures that when starting a `BoxTree` incremental layout from an `IndependentFormattingContext` that the `FragmentFlags` of the newly generated box reflect the current style, rather than wrongly preserving them between incremental layouts. This fixes an issue where restyling an `<li>` element with replaced content to one that was not replaced content did not remove the `IS_REPLACED` flag. Signed-off-by: Martin Robinson <martin@abandonedwig.info> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
FragmentFlags reflect current starting BoxTree layout from IFCFragmentFlags when starting BoxTree layout from IFC
|
🔨 Triggering try run (#28291833942) for Linux (WPT) |
Collaborator
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#60951) with upstreamable changes. |
Collaborator
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#60951) title and body. |
|
Test results for linux-wpt from try job (#28291833942): Flaky unexpected result (39)
Stable unexpected results that are known to be intermittent (27)
|
|
✨ Try run (#28291833942) succeeded. |
Member
Author
|
@Loirooriol Do you mind taking a look at this one? |
SimonSapin
approved these changes
Jun 29, 2026
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 ensures that when starting a
BoxTreeincremental layout from anIndependentFormattingContextthat theFragmentFlagsof the newlygenerated box reflect the current style, rather than wrongly preserving
them between incremental layouts. This fixes an issue where restyling an
<li>element with replaced content to one that was not replaced contentdid not remove the
IS_REPLACEDflag.Testing: This change adds a new WPT crash test.
Fixes: #45740.