mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
Fix crash bug 223064. Patch by mats.palmgren@bredband.net (Mats Palmgren), r+sr=bzbarsky
This commit is contained in:
parent
d2db9a4590
commit
b07d633d7d
@ -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(),
|
||||||
|
@ -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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user