mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Format style component.
This commit is contained in:
parent
31fc6cd565
commit
8dab4d659a
120 changed files with 2207 additions and 1417 deletions
|
@ -243,7 +243,8 @@ impl VariableValue {
|
|||
self.first_token_type.set_if_nothing(css_first_token_type);
|
||||
// If self.first_token_type was nothing,
|
||||
// self.last_token_type is also nothing and this will be false:
|
||||
if self.last_token_type
|
||||
if self
|
||||
.last_token_type
|
||||
.needs_separator_when_before(css_first_token_type)
|
||||
{
|
||||
self.css.push_str("/**/")
|
||||
|
@ -569,7 +570,8 @@ impl<'a> CustomPropertiesBuilder<'a> {
|
|||
_ => {},
|
||||
}
|
||||
|
||||
let existing_value = self.custom_properties
|
||||
let existing_value = self
|
||||
.custom_properties
|
||||
.as_ref()
|
||||
.and_then(|m| m.get(name))
|
||||
.or_else(|| self.inherited.and_then(|m| m.get(name)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue