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:
bors-servo 2017-08-08 08:29:14 -05:00 committed by GitHub
commit 3ba4f784f8
3 changed files with 114 additions and 49 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())
}