mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Auto merge of #17973 - ferjm:ordered-map, r=heycam
stylo: ensure consistent order for custom properties computed values - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors From https://bugzilla.mozilla.org/show_bug.cgi?id=1379577 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17973) <!-- Reviewable:end -->
This commit is contained in:
commit
3ba4f784f8
3 changed files with 114 additions and 49 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