зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1070466 - Crash [@ mozilla::gfx::StreamPathToSinkApplierFunc] after path.addPath(path). r=roc
This commit is contained in:
Родитель
9fd62691c6
Коммит
01a4cb33f1
|
@ -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>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче