mirror of
https://github.com/servo/servo.git
synced 2025-07-19 13:23:46 +01:00
canvas: Use wrapped kurbo::BezPath
for path everywhere (#37967)
This PR removes existing path(segment) abstractions in favor of `kurbo::BezPath`, well actually wrapped `kurbo::BezPath`, to ensure building of valid paths. This allows us better Path2D building in script and doing all validation and segmentation there and also allows us remove blocking is_point_in_path on Path2D as we can now do this in script. Current path is still done on canvas thread side as it will be harder to move to script (will be done as a follow up), but it now uses this new path abstraction. Using kurbo also allows us to ditch our manual svgpath parser with the one provided by kurbo. Same code is stolen from: https://github.com/servo/servo/pull/36821. Testing: Existing WPT tests Fixes: #37904 wpt run: https://github.com/sagudev/servo/actions/runs/16172191716 --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
d4528e84b9
commit
9b5b26386c
23 changed files with 571 additions and 1502 deletions
|
@ -74,8 +74,6 @@ mod drag_data_store;
|
|||
mod links;
|
||||
mod xpath;
|
||||
|
||||
mod svgpath;
|
||||
|
||||
pub use init::init;
|
||||
pub(crate) use script_bindings::DomTypes;
|
||||
pub use script_runtime::JSEngineSetup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue