diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-04-27 13:45:17 -0500 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-04-27 13:45:17 -0500 |
commit | eefa3eba256d48bc24189417c3bb8d3a9a77d979 (patch) | |
tree | 0e27ce0b582e4036de379b4a20855c16a5b956e2 /components/script | |
parent | 9ec2ce0decff852f24280a59c779220f243bcff6 (diff) | |
parent | e8e7357e99acc8aff1f4def06b2b25e9cf8db095 (diff) | |
download | servo-eefa3eba256d48bc24189417c3bb8d3a9a77d979.tar.gz servo-eefa3eba256d48bc24189417c3bb8d3a9a77d979.zip |
Auto merge of #5872 - nox:canvasgradient, r=saneyuki
The argument should be a double.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5872)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/canvasgradient.rs | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/CanvasGradient.webidl | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/components/script/dom/canvasgradient.rs b/components/script/dom/canvasgradient.rs index e25dc88ef72..eec31c3fc79 100644 --- a/components/script/dom/canvasgradient.rs +++ b/components/script/dom/canvasgradient.rs @@ -44,7 +44,7 @@ impl CanvasGradient { impl<'a> CanvasGradientMethods for JSRef<'a, CanvasGradient> { // https://html.spec.whatwg.org/multipage/#dom-canvasgradient-addcolorstop - fn AddColorStop(self, offset: Finite<f32>, color: String) { + fn AddColorStop(self, offset: Finite<f64>, color: String) { let default_black = RGBA { red: 0.0, green: 0.0, diff --git a/components/script/dom/webidls/CanvasGradient.webidl b/components/script/dom/webidls/CanvasGradient.webidl index fbeab843987..abe41d853dc 100644 --- a/components/script/dom/webidls/CanvasGradient.webidl +++ b/components/script/dom/webidls/CanvasGradient.webidl @@ -3,10 +3,11 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// https://html.spec.whatwg.org/#canvasgradient +// [Exposed=(Window,Worker)] interface CanvasGradient { // opaque object - // addColorStop should take a double - void addColorStop(float offset, DOMString color); + void addColorStop(double offset, DOMString color); }; |