1
Fork 0
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:
Andreas Kling 2023-08-19 09:29:04 +02:00
parent 8bb275f2ea
commit 25375bf1d5
10 changed files with 34 additions and 11 deletions

View file

@ -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())