[Webkit-unassigned] [Bug 274834] DOMMatrix inverse not the same as SVGMatrix

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 29 11:57:19 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=274834

--- Comment #4 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
The reason of the discrepancy between DOMMatrix.inverse() and SVGMatrix.inverse() is DOMMatrix is based on TransformationMatrix while SVGMatrix is based on AffineTransform.

TransformationMatrix::inverse() has this check 

        if (std::abs(determinant) < SMALL_NUMBER)
            return std::nullopt;

AffineTransform does not have a similar check. If this if-statement is removed, TransformationMatrix::inverse() will return the same value that AffineTransform::inverse() returns.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240529/9b45bc68/attachment.htm>


More information about the webkit-unassigned mailing list