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

@ -72,12 +72,12 @@ JS::GCPtr<Painting::Paintable> Box::create_paintable() const
Painting::PaintableBox* Box::paintable_box()
{
return static_cast<Painting::PaintableBox*>(Node::paintable());
return static_cast<Painting::PaintableBox*>(Node::first_paintable());
}
Painting::PaintableBox const* Box::paintable_box() const
{
return static_cast<Painting::PaintableBox const*>(Node::paintable());
return static_cast<Painting::PaintableBox const*>(Node::first_paintable());
}
Optional<CSSPixelFraction> Box::preferred_aspect_ratio() const