Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: aace11ea10c9469bc8fb836f6aba2d8e1d8e60c4
https://github.com/WebKit/WebKit/commit/aace11ea10c9469bc8fb836f6aba2d8e1d8e60c4
Author: Rob Buis <[email protected]>
Date: 2026-03-02 (Mon, 02 Mar 2026)
Changed paths:
M LayoutTests/platform/mac-tahoe-wk2-lbse-text/TestExpectations
M Source/WebCore/rendering/ReferencedSVGResources.cpp
M Source/WebCore/rendering/ReferencedSVGResources.h
M Source/WebCore/rendering/RenderElement.cpp
M Source/WebCore/rendering/RenderElement.h
M Source/WebCore/rendering/RenderLayerModelObject.cpp
M Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp
Log Message:
-----------
[LBSE] Fix marker-element-added.html
https://bugs.webkit.org/show_bug.cgi?id=308640
Reviewed by Nikolas Zimmermann.
Registering SVG resources works when done during initial
render tree constructions, i.e. the SVG resource is defined before
or after its clients, because the pending resource logic can find the SVG
resource by id in the DOM tree.
When appending the SVG resource after initial render tree construction the
pending resource logic can't find the element to wait for as it is not
part of the DOM tree yet. So add logic to add the appropriate CSS
clients for the newly registered SVG resource based on the pending clients.
Besides above, also include a repaintAllClients when above situation
is encountered and fix a lookup issue where svgMarkerResourceFromStyle
did not strip the '#'.
* LayoutTests/platform/mac-tahoe-wk2-lbse-text/TestExpectations:
* Source/WebCore/rendering/ReferencedSVGResources.cpp:
(WebCore::ReferencedSVGResources::addReferencedSVGResourceIfNeeded):
* Source/WebCore/rendering/ReferencedSVGResources.h:
* Source/WebCore/rendering/RenderElement.cpp:
(WebCore::RenderElement::addReferencedSVGResourceIfNeeded):
* Source/WebCore/rendering/RenderElement.h:
* Source/WebCore/rendering/RenderLayerModelObject.cpp:
(WebCore::RenderLayerModelObject::svgMarkerResourceFromStyle const):
* Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp:
(WebCore::RenderSVGResourceContainer::registerResource):
Canonical link: https://commits.webkit.org/308449@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications