mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Move parse method of PropertyDeclaration to ParsedDeclaration
This is what it now returns.
This commit is contained in:
parent
9d663ea7af
commit
4b4a873c3e
5 changed files with 93 additions and 93 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
use cssparser::{parse_important, Parser, Token};
|
||||
use parser::ParserContext;
|
||||
use properties::{PropertyDeclaration, PropertyId};
|
||||
use properties::{PropertyId, ParsedDeclaration};
|
||||
use std::fmt;
|
||||
use style_traits::ToCss;
|
||||
|
||||
|
@ -211,7 +211,7 @@ impl Declaration {
|
|||
return false
|
||||
};
|
||||
let mut input = Parser::new(&self.val);
|
||||
let res = PropertyDeclaration::parse(id, cx, &mut input, /* in_keyframe */ false);
|
||||
let res = ParsedDeclaration::parse(id, cx, &mut input, /* in_keyframe */ false);
|
||||
let _ = input.try(parse_important);
|
||||
res.is_ok() && input.is_exhausted()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue