Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5132ac6063434aa89f46175a9872c60f2ecc9dd4
https://github.com/WebKit/WebKit/commit/5132ac6063434aa89f46175a9872c60f2ecc9dd4
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-08-02 (Sun, 02 Aug 2026)
Changed paths:
M Source/WebCore/rendering/TransformPaintScope.h
Log Message:
-----------
[LBSE] Invert the 2D affine transform when mapping the paint dirty rect
https://bugs.webkit.org/show_bug.cgi?id=320815
Reviewed by Rob Buis.
TransformPaintScope mapped the paint dirty rect back through the inverse
of the full 4x4 TransformationMatrix on every transformed SVG paint. For
the common SVG case the transform is a 2D affine (e.g. translate/rotate/
scale), for which the 2x3 AffineTransform we already computed can be
inverted far more cheaply than the general 4x4 matrix.
Invert the AffineTransform when the transform isAffine(), falling back to
the 4x4 inverse for non-affine, 3D transforms. Same result, less work per
paint.
Covered by existing tests.
* Source/WebCore/rendering/TransformPaintScope.h:
(WebCore::TransformPaintScope::TransformPaintScope):
Canonical link: https://commits.webkit.org/318411@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications