Fixed a problem with code that determined whether this was a beginning line.

It wasn't correctly handling the very first line in the block


git-svn-id: svn://10.0.0.236/trunk@57259 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
2000-01-10 05:14:47 +00:00
parent 86ca291639
commit 7828a4605a
6 changed files with 12 additions and 6 deletions

View File

@@ -2780,7 +2780,8 @@ nsBlockFrame::ReflowLine(nsBlockReflowState& aState,
// XXX This approach doesn't work when floaters are involved in which case
// we'll either need to recover the floater state that applies to the
// unconstrained reflow or keep it around in a separate space manager...
if (aState.mComputeMaximumWidth && aState.mPrevLine && !aState.mPrevLine->IsLineWrapped()) {
PRBool isBeginningLine = !aState.mPrevLine || !aState.mPrevLine->IsLineWrapped();
if (aState.mComputeMaximumWidth && isBeginningLine) {
nscoord oldY = aState.mY;
nscoord oldPrevBottomMargin = aState.mPrevBottomMargin;