mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update cssparser to 0.18
https://github.com/servo/rust-cssparser/pull/171
This commit is contained in:
parent
30d6d6024b
commit
eb98ae6e04
64 changed files with 541 additions and 512 deletions
|
@ -154,7 +154,7 @@ impl Zoom {
|
|||
use cssparser::Token;
|
||||
use values::specified::AllowedLengthType::NonNegative;
|
||||
|
||||
match input.next()? {
|
||||
match *input.next()? {
|
||||
// TODO: This parse() method should take ParserContext as an
|
||||
// argument, and pass ParsingMode owned by the ParserContext to
|
||||
// is_ok() instead of using PARSING_MODE_DEFAULT directly.
|
||||
|
@ -168,7 +168,7 @@ impl Zoom {
|
|||
Token::Ident(ref value) if value.eq_ignore_ascii_case("auto") => {
|
||||
Ok(Zoom::Auto)
|
||||
}
|
||||
t => Err(CssParseError::Basic(BasicParseError::UnexpectedToken(t)))
|
||||
ref t => Err(CssParseError::Basic(BasicParseError::UnexpectedToken(t.clone())))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue