Open Bug 1878992 Opened 2 years ago Updated 2 years ago

[wpt-sync] Sync PR 44429 - Remove empty closed paths

Categories

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

task

Tracking

()

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Yi Xu <yiyix@google.com> wrote:

Remove empty closed paths

As discussed in the github issue,
https://github.com/whatwg/html/issues/1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

fix

Change-Id: Ic4a2f23470a7c1abcc5b9793cd100451db3a4ac1
Reviewed-on: https://chromium-review.googlesource.com/5274884
WPT-Export-Revision: fda7f52999b1cc0e76941cbd765ef72378ecc54a

PR 44429 applied with additional changes from upstream: 64b75a906f010f05c58a9941c75d3719079130a0
Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core
You need to log in before you can comment on or make changes to this bug.