mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
This reverts commit 8e15389cae
.
This commit is contained in:
parent
8e15389cae
commit
d6ae8dc112
152 changed files with 4622 additions and 5862 deletions
|
@ -86,7 +86,7 @@ fn convert_gradient_stops(
|
|||
// Only keep the color stops, discard the color interpolation hints.
|
||||
let mut stop_items = gradient_items
|
||||
.iter()
|
||||
.filter_map(|item| match item {
|
||||
.filter_map(|item| match *item {
|
||||
GradientItem::SimpleColorStop(color) => Some(ColorStop {
|
||||
color,
|
||||
position: None,
|
||||
|
@ -191,7 +191,7 @@ fn convert_gradient_stops(
|
|||
assert!(offset.is_finite());
|
||||
stops.push(GradientStop {
|
||||
offset: offset,
|
||||
color: style.resolve_color(stop.color.clone()).to_layout(),
|
||||
color: style.resolve_color(stop.color).to_layout(),
|
||||
})
|
||||
}
|
||||
stops
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue