1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:47:35 +00:00

LibWebView+Ladybird: Move preferred color scheme to ViewImplementation

This commit is contained in:
Linus Groh 2023-01-12 20:44:42 +00:00 committed by Andreas Kling
parent 5bf5697f16
commit f183745f4e
6 changed files with 7 additions and 13 deletions

View file

@ -517,11 +517,6 @@ void WebContentView::show_inspector()
inspect_dom_tree();
}
void WebContentView::set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme)
{
client().async_set_preferred_color_scheme(color_scheme);
}
void WebContentView::update_zoom()
{
client().async_set_device_pixels_per_css_pixel(m_device_pixel_ratio * m_zoom_level);

View file

@ -95,8 +95,6 @@ public:
Gfx::IntPoint to_content(Gfx::IntPoint) const;
Gfx::IntPoint to_widget(Gfx::IntPoint) const;
void set_preferred_color_scheme(Web::CSS::PreferredColorScheme);
virtual void notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize content_size) override;
virtual void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id) override;
virtual void notify_server_did_invalidate_content_rect(Badge<WebContentClient>, Gfx::IntRect const&) override;