mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Replace ParsedDeclaration::expand with non-generic method
... to reduce its code size impact. https://bugzilla.mozilla.org/show_bug.cgi?id=1351737
This commit is contained in:
parent
3345b83fb3
commit
4f2b9a33fe
5 changed files with 70 additions and 36 deletions
|
@ -374,7 +374,7 @@ impl<'a> QualifiedRuleParser for KeyframeListParser<'a> {
|
|||
let mut block = PropertyDeclarationBlock::new();
|
||||
while let Some(declaration) = iter.next() {
|
||||
match declaration {
|
||||
Ok(parsed) => parsed.expand(|d| block.push(d, Importance::Normal)),
|
||||
Ok(parsed) => parsed.expand_push_into(&mut block, Importance::Normal),
|
||||
Err(range) => {
|
||||
let pos = range.start;
|
||||
let message = format!("Unsupported keyframe property declaration: '{}'",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue