Move children_to_process to layout.

We don't need this for Gecko, and it's hard to implement in that case because
there's nowhere obvious to put it (we don't plan to create TSDs for non-dirty
nodes, and non-dirty nodes can have dirty children which require the
children_to_process atomic). There are various solutions here, but punting is
the easiest.

We'll need to rethink this if/when we need to do a bottom-up traversal for
Gecko.
This commit is contained in:
Bobby Holley 2016-10-08 18:08:01 -07:00
parent b1d8eff467
commit c72fffa8f8
8 changed files with 74 additions and 44 deletions

View file

@ -1418,7 +1418,7 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
let result = {
let mut style = node.style(self.style_context());
let mut data = node.mutate_layout_data().unwrap();
let damage = data.restyle_damage;
let damage = data.base.restyle_damage;
match *node.construction_result_mut(&mut *data) {
ConstructionResult::None => true,