зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c7a230eed3
Коммит
1ddc518ca0
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче