diff options
author | Martin Robinson <mrobinson@igalia.com> | 2025-05-12 11:38:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-12 09:38:50 +0000 |
commit | a0dd2c1bebbc238d2fe36b1134acfbc842c1f084 (patch) | |
tree | 367a47983a81113a4c4988ff8a11cca6de6f007d /tests/wpt/css-tests/css-transforms-1_dev/html/svg-origin-relative-length-045.htm | |
parent | db83601b62b81965176e1e8272d5b434afeb0da6 (diff) | |
download | servo-main.tar.gz servo-main.zip |
`TextRun`s use their parent style to render. Previously, these styles
were cloned and stored directly in the box tree `TextRun` and resulting
`TextFragment`s. This presents a problem for incremental layout.
Wrapping the style in another layer of shared ownership and mutability
will allow updating all `TextFragment`s during repaint-only incremental
layout by simply updating the box tree styles of the original text
parents.
This adds a new set of borrows when accessing text styles, but also
makes it so that during box tree block construction
`InlineFormattingContext`s are created lazily and now
`InlineFormattingContextBuilder::finish` consumes the builder, making
the API make a bit more sense. This should also improve performance of
box tree block construction slightly.
Testing: This should not change observable behavior and thus is covered
by existing WPT tests.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'tests/wpt/css-tests/css-transforms-1_dev/html/svg-origin-relative-length-045.htm')
0 files changed, 0 insertions, 0 deletions