Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 480dd8d99f0e46329bde642066e5d20de40348e6
https://github.com/WebKit/WebKit/commit/480dd8d99f0e46329bde642066e5d20de40348e6
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths:
M Source/WebCore/rendering/svg/RenderSVGViewportContainer.cpp
Log Message:
-----------
[LBSE] Compensate for content box offset when applying zoom to outermost SVG
viewport container
https://bugs.webkit.org/show_bug.cgi?id=316238
Reviewed by Rob Buis.
Wrap the zoom scale of the outermost viewport container's supplemental layer
transform with compensating translations around the content box origin. The
layer's positional offset (border + padding) is applied via translateRight
after the supplemental transform in paintLayerByApplyingTransform(), so without
compensation the zoom would scale that positional offset and shift the SVG
content by (zoom - 1) * contentBoxOffset. Also drop the now-incorrect
hasLayer() assertion in updateLayerTransform().
Fixes svg/zoom/page/zoom-svg-float-border-padding.xml when conditional
layer creation is enabled.
* Source/WebCore/rendering/svg/RenderSVGViewportContainer.cpp:
(WebCore::RenderSVGViewportContainer::updateLayerTransform):
Canonical link: https://commits.webkit.org/314535@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications