Return whether property was removed from Servo_DeclarationBlock_RemoveProperty.

This commit is contained in:
Xidorn Quan 2018-02-10 19:58:30 +11:00
parent 1d8e78720b
commit b9ef2bbdd5
2 changed files with 3 additions and 3 deletions

View file

@ -2840,7 +2840,7 @@ extern "C" {
pub fn Servo_DeclarationBlock_RemoveProperty( pub fn Servo_DeclarationBlock_RemoveProperty(
declarations: RawServoDeclarationBlockBorrowed, declarations: RawServoDeclarationBlockBorrowed,
property: *const nsACString, property: *const nsACString,
); ) -> bool;
} }
extern "C" { extern "C" {
pub fn Servo_DeclarationBlock_RemovePropertyById( pub fn Servo_DeclarationBlock_RemovePropertyById(

View file

@ -2874,8 +2874,8 @@ fn remove_property(
pub unsafe extern "C" fn Servo_DeclarationBlock_RemoveProperty( pub unsafe extern "C" fn Servo_DeclarationBlock_RemoveProperty(
declarations: RawServoDeclarationBlockBorrowed, declarations: RawServoDeclarationBlockBorrowed,
property: *const nsACString, property: *const nsACString,
) { ) -> bool {
remove_property(declarations, get_property_id_from_property!(property, ())); remove_property(declarations, get_property_id_from_property!(property, false))
} }
#[no_mangle] #[no_mangle]