style: Remove unused argument in element_needs_traversal.

This commit is contained in:
Emilio Cobos Álvarez 2017-11-17 16:31:58 +01:00
parent 7b0006ece6
commit 7ea98a577b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 7 additions and 15 deletions

View file

@ -76,8 +76,7 @@ impl<'a, E> DomTraversal<E> for RecalcStyleAndConstructFlows<'a>
// flow construction:
// (1) They child doesn't yet have layout data (preorder traversal initializes it).
// (2) The parent element has restyle damage (so the text flow also needs fixup).
node.get_raw_data().is_none() ||
parent_data.damage != RestyleDamage::empty()
node.get_raw_data().is_none() || !parent_data.damage.is_empty()
}
fn shared_context(&self) -> &SharedStyleContext {