LibWeb: Allow layout nodes to have multiple paintables

CSS fragmentation implies 1:N relationship between layout nodes and
paintables. This change is a preparation for implementation of inline
fragmentation where InlinePaintable will be replaced with
PaintableWithLines corresponding to each line.
This commit is contained in:
Aliaksandr Kalenik 2024-10-14 16:07:56 +02:00 committed by Alexander Kalenik
commit 7d22b1c5c8
Notes: github-actions[bot] 2024-10-16 18:26:52 +00:00
16 changed files with 90 additions and 30 deletions

View file

@ -1924,6 +1924,11 @@ void Node::set_paintable(JS::GCPtr<Painting::Paintable> paintable)
m_paintable = paintable;
}
void Node::clear_paintable()
{
m_paintable = nullptr;
}
Painting::Paintable const* Node::paintable() const
{
return m_paintable;