Repository navigation
REGRESSION (297241@main): Overflow siblings at parser's max DOM tree depth get fully rendered, causing slow layout - #64319
Merged
Merged
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 0a34430) Details |
zakariaridouh
commented
May 6, 2026
alanbaradlay
approved these changes
May 6, 2026
Contributor
|
(not a webkit reviewer), r=me |
sammygill
approved these changes
May 6, 2026
zakariaridouh
force-pushed
the
eng/REGRESSION-297241-main-Overflow-siblings-at-parser-s-max-DOM-tree-depth-get-fully-rendered-causing-slow-layout
branch
from
May 6, 2026 21:20
0a34430 to
d0c4f04
Compare
Collaborator
|
EWS run on current version of this PR (hash d0c4f04) Details |
…depth get fully rendered, causing slow layout https://bugs.webkit.org/show_bug.cgi?id=314139 rdar://172219636 Reviewed by Sammy Gill and Alan Baradlay. When the parser's DOM depth cap is reached, HTMLConstructionSite::attachLater attaches further elements as siblings at the boundary depth (see 297241@main). The render tree's depth check skipped elements above the cap but not at it, so the overflow run was fully styled and laid out — causing ~15s render times on content with thousands of overflow siblings (e.g. mail with embedded crash logs containing unmatched <unavailable> tags). At the maximum render tree depth, skip elements that have a previous element sibling. The single legitimate deepest element keeps its renderer; the overflow siblings get none. * PerformanceTests/Layout/deep-nesting-overflow-siblings.html: Added. * Source/WebCore/style/StyleTreeResolver.cpp: (WebCore::Style::TreeResolver::resolveComposedTree): Canonical link: https://commits.webkit.org/312751@main
webkit-commit-queue
force-pushed
the
eng/REGRESSION-297241-main-Overflow-siblings-at-parser-s-max-DOM-tree-depth-get-fully-rendered-causing-slow-layout
branch
from
May 6, 2026 23:37
d0c4f04 to
69a399d
Compare
Collaborator
|
Committed 312751@main (69a399d): https://commits.webkit.org/312751@main Reviewed commits have been landed. Closing PR #64319 and removing active labels. |
zakariaridouh
deleted the
eng/REGRESSION-297241-main-Overflow-siblings-at-parser-s-max-DOM-tree-depth-get-fully-rendered-causing-slow-layout
branch
June 4, 2026 21:07
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.
🛠 ios-apple
69a399d
d0c4f04
🛠 ios🛠 win🧪 wpe-wk2🧪 win-tests🧪 ios-wk2🧪 api-mac🧪 ios-wk2-wpt🧪 api-mac-debug🧪 api-ios🧪 mac-AS-debug-wk2🛠 vision-sim🛠 playstation🧪 vision-wk2🧪 mac-intel-wk2🛠 tv-sim🛠 watch🛠 watch-sim