diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs
index 6c0e666abca..9feb6be4571 100644
--- a/components/style/gecko/wrapper.rs
+++ b/components/style/gecko/wrapper.rs
@@ -1484,11 +1484,11 @@ impl<'le> TElement for GeckoElement<'le> {
}
}
- fn match_element_lang(&self,
- override_lang: Option