headless-browser: Store the viewport size as DevicePixelSize

This will just avoid a bunch of needless conversion to/from IntSize in
and upcoming commit.
This commit is contained in:
Timothy Flynn 2024-11-12 10:36:53 -05:00 committed by Andreas Kling
commit 71ccaeda16
Notes: github-actions[bot] 2024-11-13 10:02:13 +00:00
7 changed files with 13 additions and 14 deletions

View file

@ -95,7 +95,7 @@ ErrorOr<void> Application::launch_test_fixtures()
return {};
}
HeadlessWebView& Application::create_web_view(Core::AnonymousBuffer theme, Gfx::IntSize window_size)
HeadlessWebView& Application::create_web_view(Core::AnonymousBuffer theme, Web::DevicePixelSize window_size)
{
auto web_view = HeadlessWebView::create(move(theme), window_size);
m_web_views.append(move(web_view));