mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Unify two branches of match statement in intersec_ellipse_line
This commit is contained in:
parent
345a069201
commit
15af32cc27
1 changed files with 1 additions and 8 deletions
|
@ -477,20 +477,13 @@ impl<'a> PaintContext<'a> {
|
|||
}
|
||||
(Some(p0), Some(p1))
|
||||
},
|
||||
(Some(x0), None) => {
|
||||
(Some(x0), None) | (None, Some(x0)) => {
|
||||
let mut p = Point2D::new(x0, a * x0 + b) + e.origin;
|
||||
if rotated_axes {
|
||||
p = rotate_axes(p, false);
|
||||
}
|
||||
(Some(p), None)
|
||||
},
|
||||
(None, Some(x1)) => {
|
||||
let mut p = Point2D::new(x1, a * x1 + b) + e.origin;
|
||||
if rotated_axes {
|
||||
p = rotate_axes(p, false);
|
||||
}
|
||||
(Some(p), None)
|
||||
},
|
||||
(None, None) => (None, None),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue