mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #20013 - upsuper:remove-prop-bool, r=bzbarsky
Return whether property was removed from Servo_DeclarationBlock_RemoveProperty This is the Servo side change of [bug 1435139](https://bugzilla.mozilla.org/show_bug.cgi?id=1435139). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20013) <!-- Reviewable:end -->
This commit is contained in:
commit
afaa51b993
2 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue