mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
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:
|
||
---|---|---|
.. | ||
backend.rs | ||
canvas_data.rs | ||
canvas_paint_thread.rs | ||
Cargo.toml | ||
lib.rs | ||
raqote_backend.rs |