diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index f7aca89a524..69b2dfbf905 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -1122,6 +1122,12 @@ pub extern "C" fn Servo_StyleSet_RebuildData(raw_data: RawServoStyleSetBorrowed) data.reset_device(&guard); } +#[no_mangle] +pub extern "C" fn Servo_StyleSet_Clear(raw_data: RawServoStyleSetBorrowed) { + let mut data = PerDocumentStyleData::from_ffi(raw_data).borrow_mut(); + data.clear_stylist(); +} + #[no_mangle] pub extern "C" fn Servo_StyleSet_Drop(data: RawServoStyleSetOwned) { let _ = data.into_box::();