mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
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:
parent
7d22b1c5c8
commit
c690fb9df3
Notes:
github-actions[bot]
2024-10-16 18:26:47 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: c690fb9df3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1829
15 changed files with 42 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue