1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

LibWeb+WebContent: Virtualize PageClient methods needed for all clients

This commit is contained in:
Timothy Flynn 2022-11-21 15:22:26 -05:00 committed by Linus Groh
parent 1f08cb7020
commit c917a59abe
3 changed files with 9 additions and 6 deletions

View file

@ -55,8 +55,8 @@ public:
return adopt_own(*new HeadlessBrowserPageClient());
}
Web::Page& page() { return *m_page; }
Web::Page const& page() const { return *m_page; }
virtual Web::Page& page() override { return *m_page; }
virtual Web::Page const& page() const override { return *m_page; }
Web::Layout::InitialContainingBlock* layout_root()
{
@ -71,7 +71,7 @@ public:
page().load(url);
}
void paint(Gfx::IntRect const& content_rect, Gfx::Bitmap& target)
virtual void paint(Gfx::IntRect const& content_rect, Gfx::Bitmap& target) override
{
Gfx::Painter painter(target);