Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement radial gradients #16385

Merged
merged 9 commits into from Apr 29, 2017

Handle unimplemented size keywords for radial gradients.

  • Loading branch information
pyfisch committed Apr 27, 2017
commit ce3e1406ca8976e079dedd0cb54468eb0d4b9368
@@ -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)
}
@@ -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))
}
}
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.