mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove some PropertyDeclaration cloning.
This commit is contained in:
parent
d2bd070dc3
commit
06ba62b012
4 changed files with 63 additions and 48 deletions
|
@ -5583,9 +5583,9 @@ pub fn parse_property_declaration_list(context: &ParserContext, input: &mut Pars
|
|||
match declaration {
|
||||
Ok((results, important)) => {
|
||||
if important {
|
||||
important_declarations.push_all(&results);
|
||||
important_declarations.extend(results);
|
||||
} else {
|
||||
normal_declarations.push_all(&results);
|
||||
normal_declarations.extend(results);
|
||||
}
|
||||
}
|
||||
Err(range) => {
|
||||
|
@ -5669,7 +5669,7 @@ impl<T: ToCss> DeclaredValue<T> {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq)]
|
||||
#[derive(PartialEq)]
|
||||
pub enum PropertyDeclaration {
|
||||
% for property in LONGHANDS:
|
||||
${property.camel_case}(DeclaredValue<longhands::${property.ident}::SpecifiedValue>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue