mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -557,7 +557,7 @@ pub fn parse_one_declaration(id: PropertyId,
|
|||
-> Result<ParsedDeclaration, ()> {
|
||||
let context = ParserContext::new_with_extra_data(Origin::Author, base_url, error_reporter, extra_data);
|
||||
Parser::new(input).parse_entirely(|parser| {
|
||||
PropertyDeclaration::parse(id, &context, parser, false)
|
||||
ParsedDeclaration::parse(id, &context, parser, false)
|
||||
.map_err(|_| ())
|
||||
})
|
||||
}
|
||||
|
@ -582,7 +582,7 @@ impl<'a, 'b> DeclarationParser for PropertyDeclarationParser<'a, 'b> {
|
|||
-> Result<(ParsedDeclaration, Importance), ()> {
|
||||
let id = try!(PropertyId::parse(name.into()));
|
||||
let parsed = input.parse_until_before(Delimiter::Bang, |input| {
|
||||
PropertyDeclaration::parse(id, self.context, input, false)
|
||||
ParsedDeclaration::parse(id, self.context, input, false)
|
||||
.map_err(|_| ())
|
||||
})?;
|
||||
let importance = match input.try(parse_important) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue