mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -81,6 +81,16 @@ impl ComputeSquaredDistance for Au {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T> ComputeSquaredDistance for Box<T>
|
||||
where
|
||||
T: ComputeSquaredDistance,
|
||||
{
|
||||
#[inline]
|
||||
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()> {
|
||||
(**self).compute_squared_distance(&**other)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> ComputeSquaredDistance for Option<T>
|
||||
where
|
||||
T: ComputeSquaredDistance,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue