mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Refactor BorderRadius and move it to the border modules
BorderRadius now parses itself reusing Rect<T>.
This commit is contained in:
parent
4144dc74db
commit
af3ede418b
20 changed files with 269 additions and 286 deletions
|
@ -56,6 +56,13 @@ impl<T: HasViewportPercentage> HasViewportPercentage for Option<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T: HasViewportPercentage, U> HasViewportPercentage for TypedSize2D<T, U> {
|
||||
#[inline]
|
||||
fn has_viewport_percentage(&self) -> bool {
|
||||
self.width.has_viewport_percentage() || self.height.has_viewport_percentage()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: HasViewportPercentage> HasViewportPercentage for Vec<T> {
|
||||
#[inline]
|
||||
fn has_viewport_percentage(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue