Remove text-is-significant param from Gecko_IsSignificantChild

This commit is contained in:
Xidorn Quan 2018-03-01 09:48:32 +11:00
parent af92c06223
commit 107d9d2072
2 changed files with 2 additions and 3 deletions

View file

@ -608,7 +608,6 @@ extern "C" {
extern "C" {
pub fn Gecko_IsSignificantChild(
node: RawGeckoNodeBorrowed,
text_is_significant: bool,
whitespace_is_significant: bool,
) -> bool;
}

View file

@ -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)
})
}