Make sure that a block element following left float clears it when it can't fit next to it.

(2009 BMO bug)

This resolves #732
This commit is contained in:
Pale Moon
2015-08-12 19:37:18 +02:00
committed by roytam1
parent 72ef51f79c
commit 8fcef36616
+2 -1
View File
@@ -164,7 +164,8 @@ nsBlockReflowContext::ComputeCollapsedBStartMargin(const nsHTMLReflowState& aRS,
availSpace);
// Record that we're being optimistic by assuming the kid
// has no clearance
if (kid->StyleDisplay()->mBreakType != NS_STYLE_CLEAR_NONE) {
if (kid->StyleDisplay()->mBreakType != NS_STYLE_CLEAR_NONE ||
!nsBlockFrame::BlockCanIntersectFloats(kid)) {
*aMayNeedRetry = true;
}
if (ComputeCollapsedBStartMargin(innerReflowState, aMargin,