diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index 16e4b98fb6b..397000c2b4a 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -1068,6 +1068,10 @@ extern "C" { extern "C" { pub fn Gecko_NoteDirtyElement(element: RawGeckoElementBorrowed); } +extern "C" { + pub fn Gecko_NoteDirtySubtreeForInvalidation(element: + RawGeckoElementBorrowed); +} extern "C" { pub fn Gecko_NoteAnimationOnlyDirtyElement(element: RawGeckoElementBorrowed); diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 58ee5d3ec1f..a651cad04f3 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -1004,7 +1004,9 @@ pub extern "C" fn Servo_StyleSet_FlushStyleSheets( if have_invalidations && doc_element.is_some() { // The invalidation machinery propagates the bits up, but we still // need to tell the gecko restyle root machinery about it. - unsafe { bindings::Gecko_NoteDirtyElement(doc_element.unwrap().0); } + unsafe { + bindings::Gecko_NoteDirtySubtreeForInvalidation(doc_element.unwrap().0); + } } }