mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Share custom property declarations if they don't contain variable references.
This commit is contained in:
parent
7e143372bd
commit
a6eaa0812a
8 changed files with 180 additions and 135 deletions
|
@ -917,7 +917,7 @@ impl Parse for PaintWorklet {
|
|||
let name = Atom::from(&**input.expect_ident()?);
|
||||
let arguments = input.try(|input| {
|
||||
input.expect_comma()?;
|
||||
input.parse_comma_separated(|input| Ok(*SpecifiedValue::parse(input)?))
|
||||
input.parse_comma_separated(|input| SpecifiedValue::parse(input))
|
||||
}).unwrap_or(vec![]);
|
||||
Ok(PaintWorklet { name, arguments })
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue