mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Fixes the table_percentage_width_a.html reftest with incremental reflow turned on.
This commit is contained in:
parent
852378209b
commit
81bd3cbd9d
11 changed files with 48 additions and 70 deletions
|
@ -630,15 +630,6 @@ impl LayoutTask {
|
|||
layout_root.propagate_restyle_damage();
|
||||
});
|
||||
|
||||
profile(time::LayoutNonIncrementalReset,
|
||||
Some((&data.url, data.iframe, self.first_reflow.get())),
|
||||
self.time_profiler_chan.clone(),
|
||||
|| {
|
||||
if opts::get().incremental_layout {
|
||||
layout_root.nonincremental_reset();
|
||||
}
|
||||
});
|
||||
|
||||
// Verification of the flow tree, which ensures that all nodes were either marked as leaves
|
||||
// or as non-leaves. This becomes a no-op in release builds. (It is inconsequential to
|
||||
// memory safety but is a useful debugging tool.)
|
||||
|
@ -665,10 +656,6 @@ impl LayoutTask {
|
|||
}
|
||||
});
|
||||
|
||||
if opts::get().dump_flow_tree {
|
||||
layout_root.dump();
|
||||
}
|
||||
|
||||
// Build the display list if necessary, and send it to the renderer.
|
||||
if data.goal == ReflowForDisplay {
|
||||
let writing_mode = flow::base(layout_root.deref()).writing_mode;
|
||||
|
@ -784,7 +771,9 @@ impl LayoutTask {
|
|||
}
|
||||
|
||||
unsafe fn dirty_all_nodes(node: &mut LayoutNode) {
|
||||
node.set_changed(true);
|
||||
// TODO(cgaebel): mark nodes which are sensitive to media queries as
|
||||
// "changed":
|
||||
// > node.set_changed(true);
|
||||
node.set_dirty(true);
|
||||
node.set_dirty_siblings(true);
|
||||
node.set_dirty_descendants(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue