Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4e382e3e6640203ceee926f48388bae4460c5ef7
      
https://github.com/WebKit/WebKit/commit/4e382e3e6640203ceee926f48388bae4460c5ef7
  Author: Charlie Wolfe <[email protected]>
  Date:   2026-09-28 (Mon, 28 Sep 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/path-objects/2d.path.rect.winding-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/path-objects/2d.path.rect.winding-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/path-objects/2d.path.rect.winding.worker-expected.txt
    M Source/WebCore/html/canvas/CanvasPath.cpp

  Log Message:
  -----------
  Canvas rect() with negative width or height uses the wrong winding direction
https://bugs.webkit.org/show_bug.cgi?id=324763
rdar://188036092

Reviewed by Simon Fraser.

Path::addRect() normalizes negative dimensions, losing the counter-clockwise 
winding the spec
requires and leaving the current point at the normalized origin. Build the 
subpath explicitly in
that case.

* 
LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/path-objects/2d.path.rect.winding-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/path-objects/2d.path.rect.winding-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/path-objects/2d.path.rect.winding.worker-expected.txt:
* Source/WebCore/html/canvas/CanvasPath.cpp:
(WebCore::CanvasPath::rect):

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



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

Reply via email to