mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
parent
473934c989
commit
36ff89bd28
61 changed files with 73 additions and 437 deletions
|
@ -17,7 +17,7 @@ use std::borrow::{Borrow, Cow};
|
|||
use std::collections::{HashMap, HashSet};
|
||||
use std::fmt;
|
||||
use std::hash::Hash;
|
||||
use style_traits::{HasViewportPercentage, ToCss, StyleParseError, ParseError};
|
||||
use style_traits::{ToCss, StyleParseError, ParseError};
|
||||
|
||||
/// A custom property name is just an `Atom`.
|
||||
///
|
||||
|
@ -51,12 +51,6 @@ pub struct SpecifiedValue {
|
|||
references: HashSet<Name>,
|
||||
}
|
||||
|
||||
impl HasViewportPercentage for SpecifiedValue {
|
||||
fn has_viewport_percentage(&self) -> bool {
|
||||
panic!("has_viewport_percentage called before resolving!");
|
||||
}
|
||||
}
|
||||
|
||||
/// This struct is a cheap borrowed version of a `SpecifiedValue`.
|
||||
pub struct BorrowedSpecifiedValue<'a> {
|
||||
css: &'a str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue