mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Implement OrderedMapIterator
This commit is contained in:
parent
fd1f14a41e
commit
ff1e701fa6
2 changed files with 58 additions and 20 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