Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b127eb90e11af1308865344a28e72ff705087c96
https://github.com/WebKit/WebKit/commit/b127eb90e11af1308865344a28e72ff705087c96
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-04-22 (Wed, 22 Apr 2026)
Changed paths:
M Source/WebCore/rendering/ReferencedSVGResources.cpp
Log Message:
-----------
[LBSE] Handle non-layered clients in
CSSSVGResourceElementClient::resourceChanged
https://bugs.webkit.org/show_bug.cgi?id=312819
Reviewed by Rob Buis.
Refactor `CSSSVGResourceElementClient::resourceChanged()` so the
in-layout early return only fires for clients that currently have a
`RenderLayer` -- those are handled by the post-layout
`recursiveUpdateLayerPositions()` phase. Clients without layers fall
through to a direct `repaintOldAndNewPositionsForSVGRenderer()` call.
Also mark layered clients with `setSelfAndDescendantsNeedPositionUpdate()`
so their repaint rects are regenerated even when the client's own
geometry did not change.
At present every LBSE SVG client owns a layer so the behavioral delta is just
the new `setSelfAndDescendantsNeedPositionUpdate()` call - the relevant tests
are marked as failing, and still fail because of other issues in the current
LBSE but will be fixed after the conditional-layer-creation PR lands. Also
the non-layer branch only becomes active in the follow-up
conditional-layer-creation patch, not yet today.
* Source/WebCore/rendering/ReferencedSVGResources.cpp:
(WebCore::CSSSVGResourceElementClient::resourceChanged):
Canonical link: https://commits.webkit.org/311759@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications