diff options
author | Joone Hur <joone.hur@intel.com> | 2017-08-17 10:43:19 -0700 |
---|---|---|
committer | Joone Hur <joone.hur@intel.com> | 2017-09-01 16:04:06 -0700 |
commit | 57e283aaabaf1c481fa14dff9e85a53eac4d8113 (patch) | |
tree | f195fa268c372da8e18dc1f2a36171a0e3dab63c /components/script/dom/paintrenderingcontext2d.rs | |
parent | ac7cf536927a42a5cece379c53d6f39813a77d71 (diff) | |
download | servo-57e283aaabaf1c481fa14dff9e85a53eac4d8113.tar.gz servo-57e283aaabaf1c481fa14dff9e85a53eac4d8113.zip |
Implement Ellipse Canvas 2D API
* Update rust-azure to 0.21.0
* Mark the following test case as fail:
tests/wpt/mozilla/tests/mozilla/css-paint-api/background-image-tiled.html
* Make the ellipse test case pass.
BUG: https://github.com/servo/servo/issues/17598
Diffstat (limited to 'components/script/dom/paintrenderingcontext2d.rs')
-rw-r--r-- | components/script/dom/paintrenderingcontext2d.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/paintrenderingcontext2d.rs b/components/script/dom/paintrenderingcontext2d.rs index c6b62b50e15..5a269eaf37a 100644 --- a/components/script/dom/paintrenderingcontext2d.rs +++ b/components/script/dom/paintrenderingcontext2d.rs @@ -263,6 +263,11 @@ impl PaintRenderingContext2DMethods for PaintRenderingContext2D { self.context.ArcTo(cp1x, cp1y, cp2x, cp2y, r) } + // https://html.spec.whatwg.org/multipage/#dom-context-2d-ellipse + fn Ellipse(&self, x: f64, y: f64, rx: f64, ry: f64, rotation: f64, start: f64, end: f64, ccw: bool) -> ErrorResult { + self.context.Ellipse(x, y, rx, ry, rotation, start, end, ccw) + } + // https://html.spec.whatwg.org/multipage/#dom-context-2d-imagesmoothingenabled fn ImageSmoothingEnabled(&self) -> bool { self.context.ImageSmoothingEnabled() |