Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 74a7d27a4cc3b9285e775856a3e642ed966df371
https://github.com/WebKit/WebKit/commit/74a7d27a4cc3b9285e775856a3e642ed966df371
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-07-06 (Mon, 06 Jul 2026)
Changed paths:
M Source/WebCore/rendering/RenderLayerSVGAdditions.cpp
Log Message:
-----------
[LBSE] Reuse cached m_localTransform at paint instead of re-resolving from
style
https://bugs.webkit.org/show_bug.cgi?id=318662
Reviewed by Rob Buis.
computeRendererTransformForSVG() re-resolved the SVG transform from style on
every
paint (applyTransform: concatenate + transform-origin + matrix multiplies), even
though a non-layer SVG renderer already caches that transform in
m_localTransform,
just with a different transform-origin, aligned for the nominal layer paint code
path. We can easily compute the desired paint transform: translate(nominal) *
m_localTransform * translate(-nominal), to save the recomputation.
Covered by existing tests.
* Source/WebCore/rendering/RenderLayerSVGAdditions.cpp:
(WebCore::RenderLayer::computeRendererTransformForSVG const):
Canonical link: https://commits.webkit.org/316544@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications