mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -401,7 +401,7 @@ impl<'a, 'b> DeclarationParser for KeyframeDeclarationParser<'a, 'b> {
|
|||
|
||||
fn parse_value(&mut self, name: &str, input: &mut Parser) -> Result<ParsedDeclaration, ()> {
|
||||
let id = try!(PropertyId::parse(name.into()));
|
||||
match PropertyDeclaration::parse(id, self.context, input, true) {
|
||||
match ParsedDeclaration::parse(id, self.context, input, true) {
|
||||
Ok(parsed) => {
|
||||
// In case there is still unparsed text in the declaration, we should roll back.
|
||||
if !input.is_exhausted() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue