1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +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

@ -23,10 +23,10 @@ public:
static NonnullOwnPtr<PageHost> create(ConnectionFromClient& client) { return adopt_own(*new PageHost(client)); }
virtual ~PageHost();
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; }
void paint(Gfx::IntRect const& content_rect, Gfx::Bitmap&);
virtual void paint(Gfx::IntRect const& content_rect, Gfx::Bitmap&) override;
void set_palette_impl(Gfx::PaletteImpl const&);
void set_viewport_rect(Gfx::IntRect const&);