mirror of
https://github.com/servo/servo.git
synced 2025-07-16 20:03:39 +01:00
Use GradientBuilder::into_stops
Avoid cloning gradient stops.
This commit is contained in:
parent
b60006ae11
commit
0e4c4971be
1 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ pub fn linear(
|
||||||
(center + delta).to_layout(),
|
(center + delta).to_layout(),
|
||||||
extend_mode(repeating),
|
extend_mode(repeating),
|
||||||
),
|
),
|
||||||
builder.stops().to_vec(),
|
builder.into_stops(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -322,6 +322,6 @@ pub fn radial(
|
||||||
radius.to_layout(),
|
radius.to_layout(),
|
||||||
extend_mode(repeating),
|
extend_mode(repeating),
|
||||||
),
|
),
|
||||||
builder.stops().to_vec(),
|
builder.into_stops(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue