Changed to get nsIRunaround directly rather than use ReflowChild()
This commit is contained in:
Родитель
1c35203ecc
Коммит
ccfe33ed0a
|
@ -165,11 +165,13 @@ NS_METHOD nsBodyFrame::ResizeReflow(nsIPresContext* aPresContext,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the column's desired rect
|
// Get the column's desired rect
|
||||||
nsRect desiredRect;
|
nsRect desiredRect;
|
||||||
|
nsIRunaround* reflowRunaround;
|
||||||
|
|
||||||
mSpaceManager->Translate(leftInset, topInset);
|
mSpaceManager->Translate(leftInset, topInset);
|
||||||
aStatus = ReflowChild(mFirstChild, aPresContext, mSpaceManager, columnMaxSize,
|
mFirstChild->QueryInterface(kIRunaroundIID, (void**)&reflowRunaround);
|
||||||
desiredRect, aMaxElementSize);
|
reflowRunaround->ResizeReflow(aPresContext, mSpaceManager, columnMaxSize,
|
||||||
|
desiredRect, aMaxElementSize, aStatus);
|
||||||
mSpaceManager->Translate(-leftInset, -topInset);
|
mSpaceManager->Translate(-leftInset, -topInset);
|
||||||
|
|
||||||
// Place and size the column
|
// Place and size the column
|
||||||
|
|
Загрузка…
Ссылка в новой задаче