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

LibWeb: Add PageClient::palette() for view-agnostic palette access

This commit is contained in:
Andreas Kling 2020-06-17 20:26:59 +02:00
parent e58a13e3f6
commit 2ad1c2d959
4 changed files with 5 additions and 3 deletions

View file

@ -47,7 +47,7 @@ void Page::load(const URL& url)
Gfx::Palette Page::palette() const
{
return static_cast<const PageView&>(m_client).palette();
return m_client.palette();
}
bool Page::handle_mouseup(const Gfx::IntPoint& position, unsigned button, unsigned modifiers)