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:
bors-servo 2018-11-10 14:03:54 -05:00 committed by GitHub
commit 696816622c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),
)
}