mirror of
https://github.com/servo/servo.git
synced 2025-07-16 03:43:38 +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(),
|
||||
extend_mode(repeating),
|
||||
),
|
||||
builder.stops().to_vec(),
|
||||
builder.into_stops(),
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -322,6 +322,6 @@ pub fn radial(
|
|||
radius.to_layout(),
|
||||
extend_mode(repeating),
|
||||
),
|
||||
builder.stops().to_vec(),
|
||||
builder.into_stops(),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue