mirror of
https://github.com/servo/servo.git
synced 2025-06-18 22:34:30 +01:00
auto merge of #5302 : mmatyas/servo/canvas_stroke, r=jdm
This is the servo side patch of servo/rust-azure#149.
This commit is contained in:
commit
f29ea4e4ef
46 changed files with 23 additions and 208 deletions
|
@ -311,6 +311,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<()> {
|
||||
|
|
|
@ -82,7 +82,7 @@ interface CanvasRenderingContext2D {
|
|||
void beginPath();
|
||||
void fill(optional CanvasWindingRule fillRule = "nonzero");
|
||||
//void fill(Path2D path, optional CanvasWindingRule fillRule = "nonzero");
|
||||
//void stroke();
|
||||
void stroke();
|
||||
//void stroke(Path2D path);
|
||||
//void drawSystemFocusRing(Element element);
|
||||
//void drawSystemFocusRing(Path2D path, Element element);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue