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:
Jelle Raaijmakers 2025-09-10 15:52:34 +02:00 committed by Tim Flynn
commit d1076c1e6e
Notes: github-actions[bot] 2025-09-12 19:35:17 +00:00
5 changed files with 8 additions and 13 deletions

View file

@ -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);
}
}