layout: Replace ConstructionResult::swap_out() with get()

It only actually swaps out in nonincremental mode (which isn't suitable
for real world use), so the name is confusing.
This commit is contained in:
Patrick Walton 2016-12-02 11:52:36 -08:00 committed by Anthony Ramine
parent c32181c6db
commit 198662f8cb
2 changed files with 10 additions and 15 deletions

View file

@ -774,7 +774,7 @@ impl LayoutThread {
Some(x) => x,
None => return None,
};
let result = data.flow_construction_result.swap_out();
let result = data.flow_construction_result.get();
let mut flow = match result {
ConstructionResult::Flow(mut flow, abs_descendants) => {