style: Make ComputedValuesMap a bit more generic.

This commit is contained in:
Emilio Cobos Álvarez 2017-08-03 11:56:04 +02:00 committed by Fernando Jiménez Moreno
parent 4fdc571e9f
commit d48fd2964d
2 changed files with 13 additions and 10 deletions

View file

@ -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())
}