stylo: Allow bypassing the bottom-up traversal.

This commit is contained in:
Emilio Cobos Álvarez 2016-08-05 11:20:36 -07:00
parent 40df81d537
commit 436c1b3089
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 37 additions and 15 deletions

View file

@ -35,5 +35,10 @@ impl<'lc, 'ln> DomTraversalContext<GeckoNode<'ln>> for RecalcStyleOnly<'lc> {
recalc_style_at(&self.context, self.root, node);
}
fn process_postorder(&self, _: GeckoNode<'ln>) {}
fn process_postorder(&self, _: GeckoNode<'ln>) {
unreachable!();
}
/// We don't use the post-order traversal for anything.
fn needs_postorder_traversal(&self) -> bool { false }
}