LibWebView: Add an option to disable painting viewport scrollbars

This commit is contained in:
Tim Ledbetter 2024-12-16 11:23:10 +00:00 committed by Sam Atkins
parent 639ed5a052
commit dd819d1dea
Notes: github-actions[bot] 2025-01-15 12:35:09 +00:00
3 changed files with 11 additions and 0 deletions

View file

@ -110,6 +110,8 @@ ErrorOr<NonnullRefPtr<WebView::WebContentClient>> launch_web_content_process(
arguments.append("--collect-garbage-on-every-allocation"sv);
if (web_content_options.is_headless == WebView::IsHeadless::Yes)
arguments.append("--headless"sv);
if (web_content_options.paint_viewport_scrollbars == PaintViewportScrollbars::No)
arguments.append("--disable-scrollbar-painting"sv);
if (auto const maybe_echo_server_port = web_content_options.echo_server_port; maybe_echo_server_port.has_value()) {
arguments.append("--echo-server-port"sv);