Cleanup Polygon and make it generic

This commit is contained in:
Ravi Shankar 2017-04-12 23:47:48 +05:30
parent a36bf9efc4
commit f4b18643c2
4 changed files with 118 additions and 141 deletions

View file

@ -329,6 +329,7 @@ pub mod basic_shape {
use values::computed::basic_shape::*;
use values::computed::position;
use values::generics::BorderRadiusSize as GenericBorderRadiusSize;
use values::generics::basic_shape::FillRule;
// using Borrow so that we can have a non-moving .into()
impl<T: Borrow<StyleBasicShape>> From<T> for BasicShape {