Implement strokeRect with zero-width or zero-height rects

This commit is contained in:
David Zbarsky 2015-08-04 04:12:49 -04:00
parent 447c991ebb
commit 9fbe33b6f2
6 changed files with 23 additions and 9 deletions

View file

@ -706,7 +706,7 @@ impl<'a> PaintContext<'a> {
self.draw_target.stroke_line(start,
end,
&ColorPattern::new(color),
PatternRef::Color(&ColorPattern::new(color)),
&stroke_opts,
&draw_opts);
}