mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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:
parent
2404f95e03
commit
edb60e38bd
Notes:
github-actions[bot]
2025-10-21 07:19:13 +00:00
Author: https://github.com/rcorsi
Commit: edb60e38bd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6527
Reviewed-by: https://github.com/gmta ✅
1 changed files with 4 additions and 0 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue