Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4c2e1d5705d019325d6631c2937a872351ec9251
      
https://github.com/WebKit/WebKit/commit/4c2e1d5705d019325d6631c2937a872351ec9251
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2026-04-30 (Thu, 30 Apr 2026)

  Changed paths:
    M 
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/CoordinatedSceneState.cpp

  Log Message:
  -----------
  REGRESSION(312071@main): [CoordinatedGraphics] layers to be removed are 
leaked in CoordinatedSceneState
https://bugs.webkit.org/show_bug.cgi?id=313723

Reviewed by Miguel Gomez.

We call WTF::move to pass the layers to remove to the pending hash set,
but move doesn't changes the state when called this way. We should use
std::exchange instead to make sure. We can also avoid calling addAll()
is the previous hash set is empty, in that case it's safe to move the
layers to be removed to the pending hash set.

* 
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/CoordinatedSceneState.cpp:
(WebKit::CoordinatedSceneState::flush):
(WebKit::CoordinatedSceneState::commitPendingLayers):

Canonical link: https://commits.webkit.org/312354@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to