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