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:
parent
1f08cb7020
commit
c917a59abe
3 changed files with 9 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue