style: Implement OrderedMapIterator

This commit is contained in:
Fernando Jiménez Moreno 2017-08-04 14:16:43 +02:00
parent fd1f14a41e
commit ff1e701fa6
2 changed files with 58 additions and 20 deletions

View file

@ -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,
};