layout: Remove now unused dirty_all_nodes function in layout thread.

This commit is contained in:
Emilio Cobos Álvarez 2016-07-27 10:35:34 -07:00
parent 36376461f4
commit f6043a2394
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -1474,16 +1474,6 @@ impl LayoutThread {
}
}
unsafe fn dirty_all_nodes<N: LayoutNode>(node: N) {
for node in node.traverse_preorder() {
// TODO(cgaebel): mark nodes which are sensitive to media queries as
// "changed":
// > node.set_changed(true);
node.set_dirty(true);
node.set_dirty_descendants(true);
}
}
fn reflow_all_nodes(flow: &mut Flow) {
debug!("reflowing all nodes!");
flow::mut_base(flow).restyle_damage.insert(REPAINT | STORE_OVERFLOW | REFLOW);