Auto merge of #16691 - heycam:custom-prop-name, r=xidorn

style: Correctly serialize CSS Custom Property names.

From https://bugzilla.mozilla.org/show_bug.cgi?id=1361303, and reviewed by Xidorn over there.
This commit is contained in:
bors-servo 2017-05-02 04:19:59 -05:00 committed by GitHub
commit 997a3e8374
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