mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWebView: Add defaultZoomLevelFactor setting and necessary plumbing
This commit is contained in:
Notes:
github-actions[bot]
2025-08-26 10:32:48 +00:00
Author: https://github.com/rmg-x Commit: https://github.com/LadybirdBrowser/ladybird/commit/333164ecf9d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5969 Reviewed-by: https://github.com/trflynn89
@@ -601,6 +601,7 @@ void ViewImplementation::initialize_client(CreateNewClient create_new_client)
|
||||
if (auto const& user_agent_preset = Application::web_content_options().user_agent_preset; user_agent_preset.has_value())
|
||||
client().async_debug_request(m_client_state.page_index, "spoof-user-agent"sv, *user_agents.get(*user_agent_preset));
|
||||
|
||||
default_zoom_level_factor_changed();
|
||||
languages_changed();
|
||||
autoplay_settings_changed();
|
||||
do_not_track_changed();
|
||||
@@ -651,6 +652,12 @@ void ViewImplementation::handle_web_content_process_crash(LoadErrorPage load_err
|
||||
}
|
||||
}
|
||||
|
||||
void ViewImplementation::default_zoom_level_factor_changed()
|
||||
{
|
||||
auto const default_zoom_level_factor = Application::settings().default_zoom_level_factor();
|
||||
set_zoom(default_zoom_level_factor);
|
||||
}
|
||||
|
||||
void ViewImplementation::languages_changed()
|
||||
{
|
||||
auto const& languages = Application::settings().languages();
|
||||
|
||||
Reference in New Issue
Block a user