Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8181b116e5d900075382f563816eb96a54bbf961
https://github.com/WebKit/WebKit/commit/8181b116e5d900075382f563816eb96a54bbf961
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-01-26 (Mon, 26 Jan 2026)
Changed paths:
M Source/WebCore/page/LocalFrameViewLayoutContext.cpp
M Source/WebCore/page/LocalFrameViewLayoutContext.h
M Source/WebCore/rendering/RenderElement.cpp
Log Message:
-----------
[LBSE] Reduce cost of transform attribute changes
https://bugs.webkit.org/show_bug.cgi?id=306027
Reviewed by Simon Fraser.
SVG 'transform' attribute changes in LBSE unnecessarily call
RenderLayer::updateLayerPositionsAfterStyleChange() after every
change, instead of batching to do the work once per frame.
Instead signal to the LocalFrameViewLayoutContext that we need
to update the layer positions _once_ for the next rendering update
cycle.
Improves MotionMark/Suits performance by ~8% for LBSE.
Covered by existing tests.
* Source/WebCore/page/LocalFrameViewLayoutContext.cpp:
(WebCore::LocalFrameViewLayoutContext::didLayout):
(WebCore::LocalFrameViewLayoutContext::requestUpdateLayerPositions):
(WebCore::LocalFrameViewLayoutContext::markForUpdateLayerPositionsAfterSVGTransformChange):
* Source/WebCore/page/LocalFrameViewLayoutContext.h:
* Source/WebCore/rendering/RenderElement.cpp:
(WebCore::RenderElement::repaintOldAndNewPositionsForSVGRenderer const):
Canonical link: https://commits.webkit.org/306263@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications