Bug 406297. Assertion about stale float caches should not fire when the line is not dirty, because the float cache is not stale in that case. r+sr+a=dbaron

This commit is contained in:
roc+@cs.cmu.edu 2007-12-02 20:25:02 -08:00
Родитель 0a93863aab
Коммит d87122689a
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1948,7 +1948,8 @@ nsBlockFrame::ReflowDirtyLines(nsBlockReflowState& aState)
repositionViews = PR_TRUE; repositionViews = PR_TRUE;
if (willReflowAgain) { if (willReflowAgain) {
NS_ASSERTION(!line->HasFloats(), "Possibly stale float cache here!"); NS_ASSERTION(!line->IsDirty() || !line->HasFloats(),
"Possibly stale float cache here!");
// If we're going to reflow everything again, and this line has no // If we're going to reflow everything again, and this line has no
// cached floats, then there is no need to recover float state. The line // cached floats, then there is no need to recover float state. The line
// may be a block that contains other lines with floats, but in that // may be a block that contains other lines with floats, but in that