mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
headless-browser: Disable viewport scrollbar painting for tests
This allows us to update how the viewport scrollbar is painted without breaking every screenshot test.
This commit is contained in:
parent
96f38dc180
commit
9ef3fd0922
Notes:
github-actions[bot]
2025-04-22 15:30:37 +00:00
Author: https://github.com/trflynn89
Commit: 9ef3fd0922
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4417
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ void Application::create_platform_options(WebView::BrowserOptions& browser_optio
|
||||||
|
|
||||||
// Ensure consistent font rendering between operating systems.
|
// Ensure consistent font rendering between operating systems.
|
||||||
web_content_options.force_fontconfig = WebView::ForceFontconfig::Yes;
|
web_content_options.force_fontconfig = WebView::ForceFontconfig::Yes;
|
||||||
|
|
||||||
|
// Ensure tests are resilient to minor changes to the viewport scrollbar.
|
||||||
|
web_content_options.paint_viewport_scrollbars = WebView::PaintViewportScrollbars::No;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dump_gc_graph) {
|
if (dump_gc_graph) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue