mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 588237, patch 5: remove the optimization of skipping FlowAndPlaceFloat for some pushed floats, simply because the optimization looks fishy to me. r=roc
This commit is contained in:
parent
411ecc3706
commit
da6afc11ff
@ -5961,17 +5961,9 @@ nsBlockFrame::ReflowPushedFloats(nsBlockReflowState& aState,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (NS_SUBTREE_DIRTY(f) || aState.mReflowState.ShouldReflowAllKids()) {
|
||||
// Reflow
|
||||
aState.FlowAndPlaceFloat(f);
|
||||
}
|
||||
else {
|
||||
// Just reload the float region into the space manager
|
||||
nsRect region = nsFloatManager::GetRegionFor(f);
|
||||
aState.mFloatManager->AddFloat(f, region);
|
||||
if (f->GetNextInFlow())
|
||||
NS_MergeReflowStatusInto(&aStatus, NS_FRAME_OVERFLOW_INCOMPLETE);
|
||||
}
|
||||
// Always call FlowAndPlaceFloat; we might need to place this float
|
||||
// if didn't belong to this block the last time it was reflowed.
|
||||
aState.FlowAndPlaceFloat(f);
|
||||
|
||||
ConsiderChildOverflow(aOverflowAreas, f);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user