Changed to get nsIRunaround directly rather than use ReflowChild()

This commit is contained in:
troy 1998-04-20 19:55:45 +00:00
Родитель 1c35203ecc
Коммит ccfe33ed0a
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -166,10 +166,12 @@ 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