mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
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:
parent
a3020419d9
commit
96ea1a335c
3 changed files with 16 additions and 10 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue