mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Allow CalculateStackingRelativePositions to short-circuit
This commit is contained in:
parent
832b811198
commit
ca300d6424
5 changed files with 23 additions and 23 deletions
|
@ -974,10 +974,8 @@ impl LayoutThread {
|
|||
|
||||
flow::mut_base(layout_root).clip = data.page_clip_rect;
|
||||
|
||||
if flow::base(layout_root).restyle_damage.contains(REPOSITION) {
|
||||
let traversal = ComputeStackingRelativePositions { layout_context: layout_context };
|
||||
traversal.traverse(layout_root);
|
||||
}
|
||||
let traversal = ComputeStackingRelativePositions { layout_context: layout_context };
|
||||
traversal.traverse(layout_root);
|
||||
|
||||
if flow::base(layout_root).restyle_damage.contains(REPAINT) ||
|
||||
rw_data.display_list.is_none() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue