mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1070466 - Crash [@ mozilla::gfx::StreamPathToSinkApplierFunc] after path.addPath(path). r=roc
This commit is contained in:
parent
0dface3757
commit
d89b95d6a7
@ -4622,6 +4622,7 @@ CanvasPath::AddPath(CanvasPath& aCanvasPath, const Optional<NonNull<SVGMatrix>>&
|
||||
}
|
||||
}
|
||||
|
||||
EnsurePathBuilder(); // in case a path is added to itself
|
||||
tempPath->StreamToSink(mPathBuilder);
|
||||
}
|
||||
|
||||
|
@ -378,6 +378,8 @@ function test_addpath_canvas() {
|
||||
shouldThrow(ctx, "p5.addPath(null, m)");
|
||||
shouldThrow(ctx, "p5.addPath([], m)");
|
||||
shouldThrow(ctx, "p5.addPath({}, m)");
|
||||
|
||||
p5 = p5.addPath(p5);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user