servo: Merge #20013 - Return whether property was removed from Servo_DeclarationBlock_RemoveProperty (from upsuper:remove-prop-bool); r=bzbarsky

This is the Servo side change of [bug 1435139](https://bugzilla.mozilla.org/show_bug.cgi?id=1435139).

Source-Repo: https://github.com/servo/servo
Source-Revision: afaa51b99387df084da421a738f204fefaebfbab

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : f0a0b143d2750de047e62ab4ee940e791c2826b1
This commit is contained in:
Xidorn Quan 2018-02-10 03:59:43 -05:00
Родитель f22da31267
Коммит 9f999d9c1d
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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(

Просмотреть файл

@ -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]