mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Cleanup Polygon and make it generic
This commit is contained in:
parent
a36bf9efc4
commit
f4b18643c2
4 changed files with 118 additions and 141 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue