mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibWeb: Make Document::paintable() return a ViewportPaintable
This commit is contained in:
parent
8bb275f2ea
commit
25375bf1d5
10 changed files with 34 additions and 11 deletions
|
@ -1445,6 +1445,13 @@ Painting::Paintable const* Node::paintable() const
|
|||
return layout_node()->paintable();
|
||||
}
|
||||
|
||||
Painting::Paintable* Node::paintable()
|
||||
{
|
||||
if (!layout_node())
|
||||
return nullptr;
|
||||
return layout_node()->paintable();
|
||||
}
|
||||
|
||||
Painting::PaintableBox const* Node::paintable_box() const
|
||||
{
|
||||
if (!layout_node())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue