mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 15:09:42 +00:00
LibWeb: Remove text storage from TextPaintable
Instead of copying the layout node's text, retrieve the text from the layout node directly.
This commit is contained in:
parent
e6474778c6
commit
d1076c1e6e
Notes:
github-actions[bot]
2025-09-12 19:35:17 +00:00
Author: https://github.com/gmta
Commit: d1076c1e6e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6169
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/trflynn89
5 changed files with 8 additions and 13 deletions
|
@ -555,7 +555,7 @@ Optional<TextNode::Chunk> TextNode::ChunkIterator::try_commit_chunk(size_t start
|
|||
|
||||
GC::Ptr<Painting::Paintable> TextNode::create_paintable() const
|
||||
{
|
||||
return Painting::TextPaintable::create(*this, text_for_rendering());
|
||||
return Painting::TextPaintable::create(*this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue