Fix CanvasGradient.addColorStop()

The argument should be a double.
This commit is contained in:
Anthony Ramine 2015-04-27 19:42:48 +02:00
parent 92359c7b9a
commit e8e7357e99
2 changed files with 4 additions and 3 deletions

View file

@ -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);
};