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
parent d2db9a4590
commit b07d633d7d
2 changed files with 4 additions and 0 deletions

View File

@ -868,6 +868,8 @@ nsHTMLReflowState::CalculateHypotheticalBox(nsIPresContext* aPresContext,
aPresContext->GetCompatibilityMode(&mode); aPresContext->GetCompatibilityMode(&mode);
while (firstFrame != aPlaceholderFrame) { while (firstFrame != aPlaceholderFrame) {
NS_ASSERTION(firstFrame, "Must reach our placeholder before end of list!"); 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; PRBool isEmpty;
firstFrame->IsEmpty(mode, firstFrame->IsEmpty(mode,
firstFrame->GetStyleText()->WhiteSpaceIsSignificant(), firstFrame->GetStyleText()->WhiteSpaceIsSignificant(),

View File

@ -868,6 +868,8 @@ nsHTMLReflowState::CalculateHypotheticalBox(nsIPresContext* aPresContext,
aPresContext->GetCompatibilityMode(&mode); aPresContext->GetCompatibilityMode(&mode);
while (firstFrame != aPlaceholderFrame) { while (firstFrame != aPlaceholderFrame) {
NS_ASSERTION(firstFrame, "Must reach our placeholder before end of list!"); 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; PRBool isEmpty;
firstFrame->IsEmpty(mode, firstFrame->IsEmpty(mode,
firstFrame->GetStyleText()->WhiteSpaceIsSignificant(), firstFrame->GetStyleText()->WhiteSpaceIsSignificant(),