зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
b4287c6cd9
Коммит
0cc7aadbc1
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче