Bug 1323517 Part 4 - Pass a dummy rect into ReflowBlock() when reflowing a float. r=jfkthame

This is a preparation for the next part.

Differential Revision: https://phabricator.services.mozilla.com/D151206
This commit is contained in:
Ting-Yu Lin 2022-07-07 19:01:55 +00:00
parent 9727d0b740
commit 70e03e7368

View File

@ -6693,7 +6693,10 @@ void nsBlockFrame::ReflowFloat(BlockReflowState& aState,
}
}
brc.ReflowBlock(aAdjustedAvailableSpace, true, margin, 0, nullptr, floatRS,
// When reflowing a float, aSpace argument doesn't matter because we pass
// nullptr to aLine and we don't call nsBlockReflowContext::PlaceBlock()
// later.
brc.ReflowBlock(LogicalRect(wm), true, margin, 0, nullptr, floatRS,
aReflowStatus, aState);
} while (clearanceFrame);