LibWebView: Mark compositor viewport updates as resizing

Tell the compositor that viewport updates from handle_resize are part of
a resize operation. This keeps the compositor backing store manager on
its padded live-resize path instead of forcing an exact-size backing
store allocation for every browser window resize tick.
This commit is contained in:
Andreas Kling 2026-05-26 02:56:25 +02:00 committed by Andreas Kling
parent fa1896c2c9
commit 2eb14f2c2f

View file

@ -727,7 +727,7 @@ void ViewImplementation::apply_zoom_for_current_host()
void ViewImplementation::handle_resize()
{
client().async_set_viewport(page_id(), viewport_size(), m_device_pixel_ratio, m_is_fullscreen);
Application::the().update_compositor_viewport(client().compositor_context_id_for_page(page_id()), viewport_size().to_type<int>());
Application::the().update_compositor_viewport(client().compositor_context_id_for_page(page_id()), viewport_size().to_type<int>(), Web::Compositor::WindowResizingInProgress::Yes);
}
void ViewImplementation::initialize_client(CreateNewClient create_new_client)