mirror of
https://github.com/servo/servo.git
synced 2025-06-28 02:53:48 +01:00
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:
parent
ab03688994
commit
239302b1ed
6 changed files with 135 additions and 109 deletions
|
@ -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<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue