Skip to content

Commit

Permalink
servo: Merge #5872 - Fix CanvasGradient.addColorStop() (from nox:canv…
Browse files Browse the repository at this point in the history
…asgradient); r=saneyuki

The argument should be a double.

Source-Repo: https://github.com/servo/servo
Source-Revision: eefa3eba256d48bc24189417c3bb8d3a9a77d979

UltraBlame original commit: 1dcd92f769adea7dbc8a22ecf64b90721f1c9c0d
  • Loading branch information
marco-c committed Oct 1, 2019
1 parent 027dcbd commit 93d7f63
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
2 changes: 1 addition & 1 deletion servo/components/script/dom/canvasgradient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ offset
:
Finite
<
f32
f64
>
color
:
Expand Down
35 changes: 27 additions & 8 deletions servo/components/script/dom/webidls/CanvasGradient.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,43 @@ MPL
.
*
/
/
/
https
:
/
/
html
.
spec
.
whatwg
.
org
/
#
canvasgradient
/
/
[
Exposed
=
(
Window
Worker
)
]
interface
CanvasGradient
{
/
/
opaque
object
/
/
addColorStop
should
take
a
double
void
addColorStop
(
float
double
offset
DOMString
color
Expand Down

0 comments on commit 93d7f63

Please sign in to comment.