From 107d9d2072fbfc2af9555d8370bd486a7f5c9e02 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Thu, 1 Mar 2018 09:48:32 +1100 Subject: [PATCH] Remove text-is-significant param from Gecko_IsSignificantChild --- components/style/gecko/generated/bindings.rs | 1 - components/style/gecko/wrapper.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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) }) }