stylo: don't double check that the root node is dirty in restyle_tree, since now we ensure it in the caller.

This commit is contained in:
Emilio Cobos Álvarez 2016-07-22 16:59:19 -07:00
parent a3020419d9
commit 96ea1a335c
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 16 additions and 10 deletions

View file

@ -148,7 +148,11 @@ pub trait DomTraversalContext<N: TNode> {
/// Process `node` on the way up, after its children have been processed.
fn process_postorder(&self, node: N);
/// Returns if the node should be processed by the preorder traversal.
/// Returns if the node should be processed by the preorder traversal (and
/// then by the post-order one).
///
/// Note that this is true unconditionally for servo, since it requires to
/// bubble the widths bottom-up for all the DOM.
fn should_process(&self, _node: N) -> bool { true }
/// Do an action over the child before pushing him to the work queue.