mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 20:22:00 +00: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
a859764e31
commit
2831688c44
@ -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…
x
Reference in New Issue
Block a user