mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #22164 - pyfisch:into-stops, r=emilio
Use GradientBuilder::into_stops Avoid cloning gradient stops. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22164) <!-- Reviewable:end -->
This commit is contained in:
commit
696816622c
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