Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cee396c689382821937660841c4db35e82e95ec1
      
https://github.com/WebKit/WebKit/commit/cee396c689382821937660841c4db35e82e95ec1
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-03-08 (Sun, 08 Mar 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/geometry/DOMMatrix2DInit-validate-fixup-expected.txt
    M Source/WebCore/html/canvas/Path2D.cpp

  Log Message:
  -----------
  Path2D::addPath() reads wrong DOMMatrix2DInit fields after validateAndFixup()
https://bugs.webkit.org/show_bug.cgi?id=309433
rdar://172006033

Reviewed by Simon Fraser.

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

Path2D::addPath() was reading the raw a/b/c/d/e/f fields from
DOMMatrix2DInit after calling validateAndFixup(), instead of the
normalized m11/m12/m21/m22/m41/m42 fields that validateAndFixup()
populates. When a test passes e.g. {m11: 2} without setting the
legacy 'a' alias, the code fell through to value_or(1) and used
the identity default instead of the validated value.

* Source/WebCore/html/canvas/Path2D.cpp:
(WebCore::Path2D::addPath):
* 
LayoutTests/imported/w3c/web-platform-tests/css/geometry/DOMMatrix2DInit-validate-fixup-expected.txt:
 Progressions

Canonical link: https://commits.webkit.org/308894@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to