layout_thread: Also reposition elements when reflowing all nodes.

Fixes #15801
This commit is contained in:
Emilio Cobos Álvarez 2017-03-03 01:00:49 +01:00
parent 072f93e41e
commit 8832b5ab0a
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -1500,7 +1500,9 @@ impl LayoutThread {
fn reflow_all_nodes(flow: &mut Flow) {
debug!("reflowing all nodes!");
flow::mut_base(flow).restyle_damage.insert(REPAINT | STORE_OVERFLOW | REFLOW);
flow::mut_base(flow)
.restyle_damage
.insert(REPAINT | STORE_OVERFLOW | REFLOW | REPOSITION);
for child in flow::child_iter_mut(flow) {
LayoutThread::reflow_all_nodes(child);