mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Refactor how calc() clamping is done on computed values (fixes #15296)
This commit is contained in:
parent
f935f2da01
commit
d0b9bd9c64
13 changed files with 173 additions and 154 deletions
|
@ -189,6 +189,13 @@ pub mod specified {
|
|||
NonNegative
|
||||
}
|
||||
|
||||
impl Default for AllowedLengthType {
|
||||
#[inline]
|
||||
fn default() -> Self {
|
||||
AllowedLengthType::All
|
||||
}
|
||||
}
|
||||
|
||||
impl AllowedLengthType {
|
||||
/// Whether value is valid for this allowed length type.
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue