mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27: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
|
@ -87,6 +87,7 @@
|
|||
#include <LibWeb/Layout/Viewport.h>
|
||||
#include <LibWeb/Namespace.h>
|
||||
#include <LibWeb/Page/Page.h>
|
||||
#include <LibWeb/Painting/ViewportPaintable.h>
|
||||
#include <LibWeb/PermissionsPolicy/AutoplayAllowlist.h>
|
||||
#include <LibWeb/SVG/SVGElement.h>
|
||||
#include <LibWeb/SVG/SVGTitleElement.h>
|
||||
|
@ -3396,4 +3397,14 @@ void Document::shared_declarative_refresh_steps(StringView input, JS::GCPtr<HTML
|
|||
}
|
||||
}
|
||||
|
||||
Painting::ViewportPaintable const* Document::paintable() const
|
||||
{
|
||||
return static_cast<Painting::ViewportPaintable const*>(Node::paintable());
|
||||
}
|
||||
|
||||
Painting::ViewportPaintable* Document::paintable()
|
||||
{
|
||||
return static_cast<Painting::ViewportPaintable*>(Node::paintable());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue