Bug 513394. Make sure that mPrevChild gets set on nsBlockReflowState. r=dbaron

This commit is contained in:
Timothy Nikkel 2009-09-02 11:33:15 -04:00
parent 94314c069c
commit 4c95346537

View File

@ -3088,6 +3088,8 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
continue; continue;
} }
aState.mPrevChild = frame;
if (blockHtmlRS.WillReflowAgainForClearance()) { if (blockHtmlRS.WillReflowAgainForClearance()) {
// If an ancestor of ours is going to reflow for clearance, we // If an ancestor of ours is going to reflow for clearance, we
// need to avoid calling PlaceBlock, because it unsets dirty bits // need to avoid calling PlaceBlock, because it unsets dirty bits
@ -3099,8 +3101,6 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
return NS_OK; return NS_OK;
} }
aState.mPrevChild = frame;
#if defined(REFLOW_STATUS_COVERAGE) #if defined(REFLOW_STATUS_COVERAGE)
RecordReflowStatus(PR_TRUE, frameReflowStatus); RecordReflowStatus(PR_TRUE, frameReflowStatus);
#endif #endif