mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Ensure subpath for control point in quadratic_curve_to()
This commit is contained in:
parent
f691acd958
commit
ce48a51e99
4 changed files with 3 additions and 12 deletions
|
@ -771,6 +771,9 @@ impl<'a> CanvasData<'a> {
|
|||
}
|
||||
|
||||
pub fn quadratic_curve_to(&mut self, cp: &Point2D<f32>, endpoint: &Point2D<f32>) {
|
||||
if self.path_builder().current_point().is_none() {
|
||||
self.path_builder().move_to(cp);
|
||||
}
|
||||
self.path_builder().quadratic_curve_to(cp, endpoint);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[2d.path.quadraticCurveTo.ensuresubpath.2.html]
|
||||
[If there is no subpath, the first control point is added]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.path.quadraticCurveTo.ensuresubpath.2.html]
|
||||
[If there is no subpath, the first control point is added]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.path.quadraticCurveTo.ensuresubpath.2.worker.html]
|
||||
[If there is no subpath, the first control point is added]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue