diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index 3ffab7ccf56..60b1ad43a66 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -2732,7 +2732,7 @@ extern "C" { pub fn Servo_DeclarationBlock_RemovePropertyById(declarations: RawServoDeclarationBlockBorrowed, property: - nsCSSPropertyID); + nsCSSPropertyID) -> bool; } extern "C" { pub fn Servo_DeclarationBlock_HasCSSWideKeyword(declarations: diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 98b7cde6866..f636a5087b5 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -2606,10 +2606,13 @@ pub unsafe extern "C" fn Servo_DeclarationBlock_SetPropertyById( ) } -fn remove_property(declarations: RawServoDeclarationBlockBorrowed, property_id: PropertyId) { +fn remove_property( + declarations: RawServoDeclarationBlockBorrowed, + property_id: PropertyId +) -> bool { write_locked_arc(declarations, |decls: &mut PropertyDeclarationBlock| { - decls.remove_property(&property_id); - }); + decls.remove_property(&property_id) + }) } #[no_mangle] @@ -2617,13 +2620,15 @@ pub unsafe extern "C" fn Servo_DeclarationBlock_RemoveProperty( declarations: RawServoDeclarationBlockBorrowed, property: *const nsACString, ) { - remove_property(declarations, get_property_id_from_property!(property, ())) + remove_property(declarations, get_property_id_from_property!(property, ())); } #[no_mangle] -pub extern "C" fn Servo_DeclarationBlock_RemovePropertyById(declarations: RawServoDeclarationBlockBorrowed, - property: nsCSSPropertyID) { - remove_property(declarations, get_property_id_from_nscsspropertyid!(property, ())) +pub extern "C" fn Servo_DeclarationBlock_RemovePropertyById( + declarations: RawServoDeclarationBlockBorrowed, + property: nsCSSPropertyID +) -> bool { + remove_property(declarations, get_property_id_from_nscsspropertyid!(property, false)) } #[no_mangle]