style: Fix servo build.

This commit is contained in:
Emilio Cobos Álvarez 2018-06-11 16:24:26 -07:00
parent e94395b523
commit ab760033fd
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 27 additions and 24 deletions

View file

@ -253,7 +253,7 @@ impl CSSStyleDeclaration {
self.owner.mutate_associated_block(|pdb, changed| {
if value.is_empty() {
// Step 3
*changed = pdb.remove_property(&id);
*changed = pdb.remove_property(&id, |_| {});
return Ok(());
}
@ -365,7 +365,7 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration {
let mut string = String::new();
self.owner.mutate_associated_block(|pdb, changed| {
pdb.property_value_to_css(&id, &mut string).unwrap();
*changed = pdb.remove_property(&id);
*changed = pdb.remove_property(&id, |_| {});
});
// Step 6