style: Correctly serialize CSS Custom Property names.

This commit is contained in:
Cameron McCormack 2017-05-02 17:18:15 +08:00
parent f284a15e4b
commit 53eb1bb5c6
2 changed files with 35 additions and 4 deletions

View file

@ -1169,7 +1169,7 @@ pub extern "C" fn Servo_DeclarationBlock_GetNthProperty(declarations: RawServoDe
read_locked_arc(declarations, |decls: &PropertyDeclarationBlock| {
if let Some(&(ref decl, _)) = decls.declarations().get(index as usize) {
let result = unsafe { result.as_mut().unwrap() };
decl.id().to_css(result).unwrap();
result.assign_utf8(&decl.id().name());
true
} else {
false