mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
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:
parent
f78ed0600a
commit
30a92911fa
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/30a92911fa Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/42
6 changed files with 0 additions and 9 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) =|
|
||||
|
|
|
@ -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>());
|
||||
|
|
Loading…
Reference in a new issue