servo/components/canvas
sagudev ffe9163892
canvas: ensure there is a subpath in PathBuilderRef (#37251)
This is also required by spec:
https://html.spec.whatwg.org/multipage/canvas.html#ensure-there-is-a-subpath
and if we not ensure it vello will trigger debug asserts. Enforcing this
at `PathBuilderRef` is the lowest possible level that avoids misuse (and
avoids IPC messages if we were to do this in content process) while
still keeping it from backend.

Testing: There are tests in WPT
Split of https://github.com/servo/servo/pull/36821
try run: 1544904469

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2025-06-05 02:47:37 +00:00
..
backend.rs canvas: Use Cow<[u8]> for bytes() getter (#37249) 2025-06-04 15:16:28 +00:00
canvas_data.rs canvas: ensure there is a subpath in PathBuilderRef (#37251) 2025-06-05 02:47:37 +00:00
canvas_paint_thread.rs constellation: Wait for canvas thread to shut down before shutting down system font service (#37182) 2025-05-30 11:44:16 +00:00
Cargo.toml Removing unused dependencies in crates. (#37096) 2025-05-23 12:58:00 +00:00
lib.rs Use backend trait with associated types for 2d canvas backends abstraction (#36783) 2025-05-01 04:16:23 +00:00
raqote_backend.rs canvas: ensure there is a subpath in PathBuilderRef (#37251) 2025-06-05 02:47:37 +00:00