From b6ba711af21901e092811c5936b50a4a23d7d68e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 15 May 2017 18:02:59 +0200 Subject: [PATCH] Bug 1364862: Make PostRebuildAllStyleData async. r=heycam MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MozReview-Commit-ID: EM3eUP1dWwA Signed-off-by: Emilio Cobos Álvarez --- ports/geckolib/glue.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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::();