diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp index c30ba3bc4dd..1daa0c3c688 100644 --- a/Ladybird/WebContentView.cpp +++ b/Ladybird/WebContentView.cpp @@ -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); diff --git a/Ladybird/WebContentView.h b/Ladybird/WebContentView.h index ee9c8b73ed6..c66864a5c78 100644 --- a/Ladybird/WebContentView.h +++ b/Ladybird/WebContentView.h @@ -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, Gfx::IntSize content_size) override; virtual void notify_server_did_paint(Badge, i32 bitmap_id) override; virtual void notify_server_did_invalidate_content_rect(Badge, Gfx::IntRect const&) override; diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp index 2ea58fa4f4a..6c69e01e54e 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp @@ -577,11 +577,6 @@ void OutOfProcessWebView::set_proxy_mappings(Vector proxies, H client().async_set_proxy_mappings(move(proxies), move(mappings)); } -void OutOfProcessWebView::set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme) -{ - client().async_set_preferred_color_scheme(color_scheme); -} - void OutOfProcessWebView::connect_to_webdriver(DeprecatedString const& webdriver_ipc_path) { client().async_connect_to_webdriver(webdriver_ipc_path); diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.h b/Userland/Libraries/LibWebView/OutOfProcessWebView.h index b9911930a59..f212ba55283 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.h +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.h @@ -43,7 +43,6 @@ public: void set_content_filters(Vector); void set_proxy_mappings(Vector proxies, HashMap mappings); - void set_preferred_color_scheme(Web::CSS::PreferredColorScheme); void connect_to_webdriver(DeprecatedString const& webdriver_ipc_path); void set_window_position(Gfx::IntPoint); diff --git a/Userland/Libraries/LibWebView/ViewImplementation.cpp b/Userland/Libraries/LibWebView/ViewImplementation.cpp index 3e55943b1f6..e547191e81c 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.cpp +++ b/Userland/Libraries/LibWebView/ViewImplementation.cpp @@ -61,6 +61,11 @@ void ViewImplementation::reset_zoom() update_zoom(); } +void ViewImplementation::set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme) +{ + client().async_set_preferred_color_scheme(color_scheme); +} + DeprecatedString ViewImplementation::selected_text() { return client().get_selected_text(); diff --git a/Userland/Libraries/LibWebView/ViewImplementation.h b/Userland/Libraries/LibWebView/ViewImplementation.h index 5ab594e90ee..6ebbe7ce3ba 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.h +++ b/Userland/Libraries/LibWebView/ViewImplementation.h @@ -38,6 +38,8 @@ public: void zoom_out(); void reset_zoom(); + void set_preferred_color_scheme(Web::CSS::PreferredColorScheme); + DeprecatedString selected_text(); void select_all();