Skip to content

Commit

Permalink
Auto merge of #20150 - upsuper:text-is-significant, r=emilio
Browse files Browse the repository at this point in the history
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 -->
  • Loading branch information
bors-servo committed Mar 1, 2018
2 parents 6f2cd86 + 107d9d2 commit 90b8410
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion components/style/gecko/generated/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,6 @@ extern "C" {
extern "C" {
pub fn Gecko_IsSignificantChild(
node: RawGeckoNodeBorrowed,
text_is_significant: bool,
whitespace_is_significant: bool,
) -> bool;
}
Expand Down
4 changes: 2 additions & 2 deletions components/style/gecko/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}
}

Expand Down Expand Up @@ -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)
})
}

Expand Down

0 comments on commit 90b8410

Please sign in to comment.