Set first child during reflow unmapped; leave white space compression flag alone for zero sized frames

git-svn-id: svn://10.0.0.236/trunk@2873 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp
1998-06-01 23:39:40 +00:00
parent 60001a81c2
commit bc9886e177
2 changed files with 12 additions and 6 deletions

View File

@@ -823,10 +823,12 @@ nsLineLayout::ReflowChild(nsReflowCommand* aReflowCommand,
}
#endif
// For non-aware children they act like words which means that space
// immediately following them must not be skipped over.
// Non-aware children that take up space act like words; which means
// that space immediately following them must not be skipped over.
if (NS_LINE_LAYOUT_REFLOW_RESULT_NOT_AWARE == mReflowResult) {
mState.mSkipLeadingWhiteSpace = PR_FALSE;
if ((kidRect.width != 0) && (kidRect.height != 0)) {
mState.mSkipLeadingWhiteSpace = PR_FALSE;
}
}
// Now place the child
@@ -1433,6 +1435,7 @@ nsLineLayout::ReflowUnmapped()
}
if (0 == mLine->mChildCount) {
mLine->mFirstChild = mState.mKidFrame;
mBlock->SetFirstChild(mState.mKidFrame);
}
mLine->mChildCount++;