Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-08-15 02:53:35 +02:00 committed by Martin Robinson
parent b6e8088e8e
commit 274d273f50
11 changed files with 81 additions and 70 deletions

View file

@ -275,11 +275,11 @@ fn fixup_stops(
for item in items {
match item {
GradientItem::SimpleColorStop(color) => stops.push(ColorStop {
color: super::rgba(style.resolve_color(*color)),
color: super::rgba(style.resolve_color(color.clone())),
position: None,
}),
GradientItem::ComplexColorStop { color, position } => stops.push(ColorStop {
color: super::rgba(style.resolve_color(*color)),
color: super::rgba(style.resolve_color(color.clone())),
position: Some(if gradient_line_length.px() == 0. {
0.
} else {