WebContent: Remove update_system_fonts() IPC message

This was no longer doing anything. We'll eventually want a way to pass
system default fonts to each WebContent process, but we don't need to
squeeze everything through this API that was really meant for Serenity's
very idiosyncratic font system.
This commit is contained in:
Andreas Kling 2024-06-04 15:23:16 +02:00
parent f78ed0600a
commit 30a92911fa
Notes: sideshowbarker 2024-07-17 18:08:55 +09:00
6 changed files with 0 additions and 9 deletions

View file

@ -160,7 +160,6 @@ void WebViewBridge::initialize_client(CreateNewClient)
client().async_set_window_handle(m_client_state.page_index, m_client_state.client_handle);
client().async_set_device_pixels_per_css_pixel(m_client_state.page_index, m_device_pixel_ratio);
client().async_update_system_fonts(m_client_state.page_index, Gfx::FontDatabase::default_font_query(), Gfx::FontDatabase::fixed_width_font_query(), Gfx::FontDatabase::window_title_font_query());
client().async_set_preferred_color_scheme(m_client_state.page_index, m_preferred_color_scheme);
update_palette();

View file

@ -591,7 +591,6 @@ void WebContentView::initialize_client(WebView::ViewImplementation::CreateNewCli
client().async_set_device_pixels_per_css_pixel(m_client_state.page_index, m_device_pixel_ratio);
update_palette();
client().async_update_system_fonts(m_client_state.page_index, Gfx::FontDatabase::default_font_query(), Gfx::FontDatabase::fixed_width_font_query(), Gfx::FontDatabase::window_title_font_query());
update_screen_rects();

View file

@ -118,10 +118,6 @@ void ConnectionFromClient::update_system_theme(u64 page_id, Core::AnonymousBuffe
page->set_palette_impl(*impl);
}
void ConnectionFromClient::update_system_fonts(u64, ByteString const&, ByteString const&, ByteString const&)
{
}
void ConnectionFromClient::update_screen_rects(u64 page_id, Vector<Web::DevicePixelRect> const& rects, u32 main_screen)
{
if (auto page = this->page(page_id); page.has_value())

View file

@ -53,7 +53,6 @@ private:
virtual void set_window_handle(u64 page_id, String const& handle) override;
virtual void connect_to_webdriver(u64 page_id, ByteString const& webdriver_ipc_path) override;
virtual void update_system_theme(u64 page_id, Core::AnonymousBuffer const&) override;
virtual void update_system_fonts(u64 page_id, ByteString const&, ByteString const&, ByteString const&) override;
virtual void update_screen_rects(u64 page_id, Vector<Web::DevicePixelRect> const&, u32) override;
virtual void load_url(u64 page_id, URL::URL const&) override;
virtual void load_html(u64 page_id, ByteString const&) override;

View file

@ -19,7 +19,6 @@ endpoint WebContentServer
connect_to_webdriver(u64 page_id, ByteString webdriver_ipc_path) =|
update_system_theme(u64 page_id, Core::AnonymousBuffer theme_buffer) =|
update_system_fonts(u64 page_id, ByteString default_font_query, ByteString fixed_width_font_query, ByteString window_title_font_query) =|
update_screen_rects(u64 page_id, Vector<Web::DevicePixelRect> rects, u32 main_screen_index) =|
load_url(u64 page_id, URL::URL url) =|

View file

@ -104,7 +104,6 @@ public:
#endif
view->client().async_update_system_theme(0, move(theme));
view->client().async_update_system_fonts(0, Gfx::FontDatabase::default_font_query(), Gfx::FontDatabase::fixed_width_font_query(), Gfx::FontDatabase::window_title_font_query());
view->m_viewport_rect = { { 0, 0 }, window_size };
view->client().async_set_viewport_rect(0, view->m_viewport_rect.to_type<Web::DevicePixels>());