mrobinson · GitHub

@mrobinson changed the title Move containing block calculation to stacking context tree construction layout: Move containing block calculation to stacking context tree construction

May 15, 2026

mrobinson

Signed-off-by: Simon Sapin <simon@igalia.com>
Signed-off-by: Martin Robinson <mrobinson@igalia.com>

@mrobinson

@mrobinson

mrobinson marked this pull request as ready for review

May 15, 2026 11:31

@mrobinson

@mrobinson

@mrobinson

Merged

pull Bot pushed a commit to Haofei/servo that referenced this pull request

May 29, 2026
…building stacking context tree (servo#45210)
This was a small logic bug introduced in servo#44911. When building the
stacking context tree we don't need to calculate containing blocks for
queries, as they are calculated during the stacking context tree
construction itself.
This seems to improve performance from ~32k runs/s to ~35k runs/s on the
`flexbox-deeply-nested-column-flow.html` benchmark (after servo#45208 is
applied).
Testing: This should not change observable behavior, but does improve
performance.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>

Read the original on github.com ↗