-r hyatt -a jar
This commit is contained in:
evaughan%netscape.com 2000-03-04 01:50:58 +00:00
Родитель 06b8453823
Коммит 9be19b90da
1 изменённых файлов: 16 добавлений и 2 удалений

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

@ -611,9 +611,22 @@ nsScrollPortFrame::GetBoxInfo(nsIPresContext* aPresContext, const nsHTMLReflowSt
nsresult rv;
aSize.Clear();
nsIFrame* childFrame = mFrames.FirstChild();
// if incremental see if the next in chain is our child. Remove it if it is
// and make sure we pass it down.
if (aReflowState.reason == eReflowReason_Incremental)
{
nsIFrame* incrementalChild = nsnull;
aReflowState.reflowCommand->GetNext(incrementalChild, PR_FALSE);
if (incrementalChild == childFrame) {
aReflowState.reflowCommand->GetNext(incrementalChild);
mNeedsRecalc = PR_TRUE;
}
}
if (mNeedsRecalc) {
nsIFrame* childFrame = mFrames.FirstChild();
// get the size of the child. This is the min, max, preferred, and spring constant
// it does not include its border.
rv = GetChildBoxInfo(aPresContext, aReflowState, childFrame, mSpring);
@ -664,6 +677,7 @@ nsScrollPortFrame::GetBoxInfo(nsIPresContext* aPresContext, const nsHTMLReflowSt
nsresult
nsScrollPortFrame::GetChildBoxInfo(nsIPresContext* aPresContext, const nsHTMLReflowState& aReflowState, nsIFrame* aFrame, nsBoxInfo& aSize)
{
aSize.Clear();
// see if the frame has IBox interface