mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Introduce a generic way of gathering information from the cascade, and use it for viewport units.
This commit is contained in:
parent
40c04b4c6b
commit
9e88a495c8
12 changed files with 205 additions and 23 deletions
|
@ -39,6 +39,12 @@ pub struct SpecifiedValue {
|
|||
references: HashSet<Name>,
|
||||
}
|
||||
|
||||
impl ::values::HasViewportPercentage for SpecifiedValue {
|
||||
fn has_viewport_percentage(&self) -> bool {
|
||||
panic!("has_viewport_percentage called before resolving!");
|
||||
}
|
||||
}
|
||||
|
||||
pub struct BorrowedSpecifiedValue<'a> {
|
||||
css: &'a str,
|
||||
first_token_type: TokenSerializationType,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue