Bug 328946. Mark reflowed block as non-dirty earlier, so we don't get a spurious assertion. r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@193020 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2006-03-26 21:02:19 +00:00
parent a6877ac98a
commit cbf12a16e3

View File

@@ -777,6 +777,9 @@ nsBlockReflowContext::PlaceBlock(const nsHTMLReflowState& aReflowState,
// check that first. Note that a block can have clearance and still
// have adjoining top/bottom margins, because the clearance goes
// above the top margin.
// Mark the frame as non-dirty; it has been reflowed (or we wouldn't
// be here), and we don't want to assert in CachedIsEmpty()
mFrame->RemoveStateBits(NS_FRAME_IS_DIRTY);
PRBool empty = 0 == mMetrics.height && aLine->CachedIsEmpty();
if (empty) {
// Collapse the bottom margin with the top margin that was already