servo: Merge #20150 - Remove text-is-significant param from Gecko_IsSignificantChild (from upsuper:text-is-significant); r=emilio

This is Servo side change of [bug 1441729](https://bugzilla.mozilla.org/show_bug.cgi?id=1441729).

Source-Repo: https://github.com/servo/servo
Source-Revision: 90b8410b05e8aab35e3885820a37c6239252cca1

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : a141e4615f1d7aca05918e65536fd0ef41874495
This commit is contained in:
Xidorn Quan 2018-03-01 18:52:07 -05:00
Родитель c7a230eed3
Коммит 1ddc518ca0
2 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

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

Просмотреть файл

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