mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #20150 - upsuper:text-is-significant, r=emilio
Remove text-is-significant param from Gecko_IsSignificantChild This is Servo side change of [bug 1441729](https://bugzilla.mozilla.org/show_bug.cgi?id=1441729). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20150) <!-- Reviewable:end -->
This commit is contained in:
commit
90b8410b05
2 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue