mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Make ComputedValuesMap a bit more generic.
This commit is contained in:
parent
4fdc571e9f
commit
d48fd2964d
2 changed files with 13 additions and 10 deletions
|
@ -2314,7 +2314,7 @@ impl ComputedValuesInner {
|
|||
PropertyDeclarationId::Custom(name) => {
|
||||
self.custom_properties
|
||||
.as_ref()
|
||||
.and_then(|map| map.get_computed_value(name))
|
||||
.and_then(|map| map.get(name))
|
||||
.map(|value| value.to_css_string())
|
||||
.unwrap_or(String::new())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue