mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Box custom property
This commit is contained in:
parent
78afe2b8d1
commit
43731c5757
3 changed files with 11 additions and 9 deletions
|
@ -850,7 +850,7 @@ pub enum PropertyDeclaration {
|
|||
% endfor
|
||||
/// A custom property declaration, with the property name and the declared
|
||||
/// value.
|
||||
Custom(::custom_properties::Name, DeclaredValue<::custom_properties::SpecifiedValue>),
|
||||
Custom(::custom_properties::Name, DeclaredValue<Box<::custom_properties::SpecifiedValue>>),
|
||||
}
|
||||
|
||||
impl HasViewportPercentage for PropertyDeclaration {
|
||||
|
@ -1029,7 +1029,8 @@ impl PropertyDeclaration {
|
|||
Err(()) => return PropertyDeclarationParseResult::InvalidValue,
|
||||
}
|
||||
};
|
||||
result_list.push((PropertyDeclaration::Custom(name, value), Importance::Normal));
|
||||
result_list.push((PropertyDeclaration::Custom(name, value),
|
||||
Importance::Normal));
|
||||
return PropertyDeclarationParseResult::ValidOrIgnoredDeclaration;
|
||||
}
|
||||
PropertyId::Longhand(id) => match id {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue