style: Split clip-path and shape-outside values.

We don't actually share _that_ much code across them. This makes callers clearer
and code less confusing, IMHO.

This also has the benefit of not autocompleting path from devtools for
shape-outside.

Differential Revision: https://phabricator.services.mozilla.com/D62373
This commit is contained in:
Emilio Cobos Álvarez 2020-02-11 23:34:53 +00:00
parent ab03688994
commit 239302b1ed
6 changed files with 135 additions and 109 deletions

View file

@ -14,11 +14,11 @@ use crate::values::generics::basic_shape as generic;
/// A computed alias for FillRule.
pub use crate::values::generics::basic_shape::FillRule;
/// A computed clipping shape.
pub type ClippingShape = generic::GenericClippingShape<BasicShape, ComputedUrl>;
/// A computed `clip-path` value.
pub type ClipPath = generic::GenericClipPath<BasicShape, ComputedUrl>;
/// A computed float area shape.
pub type FloatAreaShape = generic::GenericFloatAreaShape<BasicShape, Image>;
/// A computed `shape-outside` value.
pub type ShapeOutside = generic::GenericShapeOutside<BasicShape, Image>;
/// A computed basic shape.
pub type BasicShape = generic::GenericBasicShape<