mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +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
|
@ -3519,7 +3519,7 @@ pub extern "C" fn Servo_GetCustomPropertyValue(computed_values: ServoStyleContex
|
|||
};
|
||||
|
||||
let name = unsafe { Atom::from((&*name)) };
|
||||
let computed_value = match custom_properties.get_computed_value(&name) {
|
||||
let computed_value = match custom_properties.get(&name) {
|
||||
Some(v) => v,
|
||||
None => return false,
|
||||
};
|
||||
|
@ -3545,7 +3545,7 @@ pub extern "C" fn Servo_GetCustomPropertyNameAt(computed_values: ServoStyleConte
|
|||
None => return false,
|
||||
};
|
||||
|
||||
let property_name = match custom_properties.get_name_at(index) {
|
||||
let property_name = match custom_properties.get_key_at(index) {
|
||||
Some(n) => n,
|
||||
None => return false,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue