Skip to content

Commit

Permalink
Handle unimplemented size keywords for radial gradients.
Browse files Browse the repository at this point in the history
  • Loading branch information
pyfisch committed Apr 27, 2017
1 parent 0708d62 commit ce3e140
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/layout/display_list_builder.rs
Expand Up @@ -719,6 +719,10 @@ fn convert_circle_size_keyword(keyword: SizeKeyword,
}
ClosestCorner => get_distance_to_corner(size, center, ::std::cmp::min),
FarthestCorner => get_distance_to_corner(size, center, ::std::cmp::max),
_ => {
println!("TODO: implement size keyword {:?} for circles", keyword);
Au::new(0)
}
};
Size2D::new(radius, radius)
}
Expand All @@ -734,6 +738,10 @@ fn convert_ellipse_size_keyword(keyword: SizeKeyword,
FarthestSide => get_distance_to_sides(size, center, ::std::cmp::max),
ClosestCorner => get_ellipse_radius(size, center, ::std::cmp::min),
FarthestCorner => get_ellipse_radius(size, center, ::std::cmp::max),
_ => {
println!("TODO: implement size keyword {:?} for ellipses", keyword);
Size2D::new(Au::new(0), Au::new(0))
}
}
}

Expand Down

0 comments on commit ce3e140

Please sign in to comment.