mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-29 22:42:52 +00:00
LibWeb: Avoid unnecessary Vector copying when generating line boxes
Carry the same Vector<Gfx::DrawGlyphOrEmoji> all the way from the inline level iterator to the final line box fragment.
This commit is contained in:
parent
f48024c2d1
commit
9af966f87d
Notes:
sideshowbarker
2024-07-17 12:02:22 +09:00
Author: https://github.com/awesomekling
Commit: 9af966f87d
Pull-request: https://github.com/SerenityOS/serenity/pull/23708
Reviewed-by: https://github.com/kalenikaliaksandr ✅
5 changed files with 8 additions and 9 deletions
|
@ -348,7 +348,7 @@ void InlineFormattingContext::generate_line_boxes(LayoutMode layout_mode)
|
|||
item.margin_end,
|
||||
item.width,
|
||||
text_node.computed_values().line_height(),
|
||||
item.glyph_run);
|
||||
move(item.glyph_run));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue