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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user