Fix crash bug 223064. Patch by mats.palmgren@bredband.net (Mats Palmgren), r+sr=bzbarsky

This commit is contained in:
bzbarsky%mit.edu 2003-10-22 07:01:35 +00:00
Родитель f42474cb71
Коммит e21a5aa43b
2 изменённых файлов: 4 добавлений и 0 удалений

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

@ -868,6 +868,8 @@ nsHTMLReflowState::CalculateHypotheticalBox(nsIPresContext* aPresContext,
aPresContext->GetCompatibilityMode(&mode);
while (firstFrame != aPlaceholderFrame) {
NS_ASSERTION(firstFrame, "Must reach our placeholder before end of list!");
if (!firstFrame) // This can be removed when we split out-of-flow
break; // frames correctly, see bug 223064
PRBool isEmpty;
firstFrame->IsEmpty(mode,
firstFrame->GetStyleText()->WhiteSpaceIsSignificant(),

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

@ -868,6 +868,8 @@ nsHTMLReflowState::CalculateHypotheticalBox(nsIPresContext* aPresContext,
aPresContext->GetCompatibilityMode(&mode);
while (firstFrame != aPlaceholderFrame) {
NS_ASSERTION(firstFrame, "Must reach our placeholder before end of list!");
if (!firstFrame) // This can be removed when we split out-of-flow
break; // frames correctly, see bug 223064
PRBool isEmpty;
firstFrame->IsEmpty(mode,
firstFrame->GetStyleText()->WhiteSpaceIsSignificant(),