diff options
-rw-r--r-- | components/gfx/paint_context.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/components/gfx/paint_context.rs b/components/gfx/paint_context.rs index 7f993f8ed6e..a409cd592e6 100644 --- a/components/gfx/paint_context.rs +++ b/components/gfx/paint_context.rs @@ -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), } } |