diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index 5a4845e727e..4b1663e407d 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -608,7 +608,6 @@ extern "C" { extern "C" { pub fn Gecko_IsSignificantChild( node: RawGeckoNodeBorrowed, - text_is_significant: bool, whitespace_is_significant: bool, ) -> bool; } diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 7765ac4ee05..35520d9a2a5 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -256,7 +256,7 @@ impl<'ln> GeckoNode<'ln> { #[inline] fn contains_non_whitespace_content(&self) -> bool { - unsafe { Gecko_IsSignificantChild(self.0, true, false) } + unsafe { Gecko_IsSignificantChild(self.0, false) } } } @@ -1933,7 +1933,7 @@ impl<'le> ::selectors::Element for GeckoElement<'le> { fn is_empty(&self) -> bool { !self.as_node().dom_children().any(|child| unsafe { - Gecko_IsSignificantChild(child.0, true, true) + Gecko_IsSignificantChild(child.0, true) }) }