LibWeb: Update painting backing stores in all cases

To consistently update the backing stores in reallocate_backing_stores()
the variables storing the backing stores need to be set to nullptr at
the start so that they are properly update later on near the end of the
function.
This commit is contained in:
Rocco Corsi 2025-10-20 22:58:14 -04:00 committed by Jelle Raaijmakers
parent 2404f95e03
commit edb60e38bd
Notes: github-actions[bot] 2025-10-21 07:19:13 +00:00

View file

@ -59,6 +59,10 @@ BackingStoreManager::BackingStore BackingStoreManager::acquire_store_for_next_fr
void BackingStoreManager::reallocate_backing_stores(Gfx::IntSize size)
{
auto skia_backend_context = m_navigable->skia_backend_context();
m_front_store = nullptr;
m_back_store = nullptr;
#ifdef AK_OS_MACOS
if (skia_backend_context && s_browser_mach_port.has_value()) {
auto back_iosurface = Core::IOSurfaceHandle::create(size.width(), size.height());