LibWeb: Rename Layout::Node::paintable() to first_paintable()

Layout node is allowed to have multiple corresponding paintables, so
first_paintable() is more explicit name for getter that returns first
paintable.
This commit is contained in:
Aliaksandr Kalenik 2024-10-16 15:19:32 +02:00 committed by Alexander Kalenik
commit c690fb9df3
Notes: github-actions[bot] 2024-10-16 18:26:47 +00:00
15 changed files with 42 additions and 42 deletions

View file

@ -11,12 +11,12 @@ namespace Web::Layout {
Painting::LabelablePaintable* LabelableNode::paintable()
{
return static_cast<Painting::LabelablePaintable*>(ReplacedBox::paintable());
return static_cast<Painting::LabelablePaintable*>(ReplacedBox::first_paintable());
}
Painting::LabelablePaintable const* LabelableNode::paintable() const
{
return static_cast<Painting::LabelablePaintable const*>(ReplacedBox::paintable());
return static_cast<Painting::LabelablePaintable const*>(ReplacedBox::first_paintable());
}
}