Closed Bug 1922568 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 48448 - Fix bugs: closedPath doesn't work for open circle

Categories

(Core :: Graphics: Canvas2D, task, P4)

task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 48448 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/48448
Details from upstream follow.

Yi Xu <yiyix@chromium.org> wrote:

Fix bugs: closedPath doesn't work for open circle

We're currently drawing a full-sweep open arc (sweep angle = 360 or
-360) and full-sweep closed arc with the same function
SkCanvas::drawArc(), which only draws open arcs. So it incorrectly
draws open arc for closed path.

This cl fixes the issue by converting the full sweep open arc to skpath.

Bug: 370690269

Change-Id: I7aee5f953d7d04b1ea73730a41c64cd86911746e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5889468
Reviewed-by: Florin Malita \<fmalita@chromium.org>
Commit-Queue: Yi Xu \<yiyix@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1363662}

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core

CI Results

Ran 6 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 6 tests and 1 subtests

Status Summary

Firefox

OK : 6
PASS: 5[Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, GitHub] 6[Gecko-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt]
FAIL: 1

Chrome

OK : 6
PASS: 6

Safari

OK : 6
PASS: 3
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/canvas/element/path-objects/2d.path.open.arc.html [wpt.fyi]
    • line caps should be drawn on open arcs: FAIL [Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, GitHub], PASS [Gecko-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt] (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/89e523657386 [wpt PR 48448] - Fix bugs: closedPath doesn't work for open circle, a=testonly https://hg.mozilla.org/integration/autoland/rev/b7696bd8d150 [wpt PR 48448] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.