diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-11-21 15:22:26 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-24 00:10:56 +0000 |
commit | c917a59abe6338ef72be4fe1e13ecda83e6e0064 (patch) | |
tree | 85ec56150f00862e42608d38ccbd711487aab670 /Userland/Utilities | |
parent | 1f08cb7020dd6f916852c2d40bd63a016875a798 (diff) | |
download | serenity-c917a59abe6338ef72be4fe1e13ecda83e6e0064.zip |
LibWeb+WebContent: Virtualize PageClient methods needed for all clients
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/headless-browser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Utilities/headless-browser.cpp b/Userland/Utilities/headless-browser.cpp index 8721a90be0..82c95c59ad 100644 --- a/Userland/Utilities/headless-browser.cpp +++ b/Userland/Utilities/headless-browser.cpp @@ -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); |