Bug 333659. Relanding nsLineLayout API changes for new text code. r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@218576 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2007-01-18 01:20:09 +00:00
parent 26d9bc6c85
commit 29067fe44b
6 changed files with 47 additions and 26 deletions

View File

@@ -914,7 +914,11 @@ nsFirstLineFrame::Reflow(nsPresContext* aPresContext,
}
}
NS_ASSERTION(!aReflowState.mLineLayout->GetInFirstLine(),
"Nested first-line frames? BOGUS");
aReflowState.mLineLayout->SetInFirstLine(PR_TRUE);
rv = ReflowFrames(aPresContext, aReflowState, irs, aMetrics, aStatus);
aReflowState.mLineLayout->SetInFirstLine(PR_FALSE);
// Note: the line layout code will properly compute our overflow state for us