Canvas: added stroke() support.

This commit is contained in:
Mátyás Mustoha 2015-03-19 18:47:15 +01:00
parent 2ab1ece765
commit 698b88f71d
46 changed files with 23 additions and 208 deletions

View file

@ -268,6 +268,10 @@ impl<'a> CanvasRenderingContext2DMethods for JSRef<'a, CanvasRenderingContext2D>
self.renderer.send(CanvasMsg::Fill).unwrap();
}
fn Stroke(self) {
self.renderer.send(CanvasMsg::Stroke).unwrap();
}
// https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-drawimage
fn DrawImage(self, image: HTMLCanvasElementOrCanvasRenderingContext2D,
dx: f64, dy: f64) -> Fallible<()> {