mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +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
|
@ -1398,7 +1398,12 @@ pub enum PropertyDeclaration {
|
|||
),
|
||||
/// A custom property declaration, with the property name and the declared
|
||||
/// value.
|
||||
Custom(::custom_properties::Name, DeclaredValueOwned<Box<::custom_properties::SpecifiedValue>>),
|
||||
#[cfg_attr(feature = "gecko", ignore_malloc_size_of = "XXX: how to handle this?")]
|
||||
Custom(
|
||||
::custom_properties::Name,
|
||||
#[cfg_attr(feature = "gecko", ignore_malloc_size_of = "XXX: how to handle this?")]
|
||||
DeclaredValueOwned<Arc<::custom_properties::SpecifiedValue>>
|
||||
),
|
||||
}
|
||||
|
||||
impl fmt::Debug for PropertyDeclaration {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue