mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Fix CanvasGradient.addColorStop()
The argument should be a double.
This commit is contained in:
parent
92359c7b9a
commit
e8e7357e99
2 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue