mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Don't split floats when we're not paginating. (Bug 563584, patch 26) Fixes assertion on layout/generic/crashtests/461294-1.html . r=roc
This commit is contained in:
parent
0d14c6f6b1
commit
b479bd2afc
@ -716,7 +716,8 @@ nsBlockReflowState::FlowAndPlaceFloat(nsIFrame* aFloat)
|
||||
PRBool keepFloatOnSameLine = PR_FALSE;
|
||||
|
||||
for (;;) {
|
||||
if (floatAvailableSpace.mRect.height <= 0) {
|
||||
if (mReflowState.availableHeight != NS_UNCONSTRAINEDSIZE &&
|
||||
floatAvailableSpace.mRect.height <= 0) {
|
||||
// No space, nowhere to put anything.
|
||||
PushFloatPastBreak(aFloat);
|
||||
return PR_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user