mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 23:19:44 +00:00
LibWebView: Add defaultZoomLevelFactor setting and necessary plumbing
This commit is contained in:
parent
73266c8498
commit
333164ecf9
Notes:
github-actions[bot]
2025-08-26 10:32:48 +00:00
Author: https://github.com/rmg-x
Commit: 333164ecf9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5969
Reviewed-by: https://github.com/trflynn89
6 changed files with 45 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue