bug 18001 assertion & crash on treeTest1.xul. r=hyatt a=chofmann

This commit is contained in:
selmer%netscape.com 1999-12-14 22:30:41 +00:00
parent 9da2c4a788
commit a1674a5a49
2 changed files with 4 additions and 0 deletions

View File

@ -1394,6 +1394,8 @@ nsCSSFrameConstructor::ConstructTableGroupFrame(nsIPresShell* aPresShell,
: (NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP == styleDisplay->mDisplay); : (NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP == styleDisplay->mDisplay);
if (!contentDisplayIsGroup) { if (!contentDisplayIsGroup) {
NS_ASSERTION(aToDo, "null nsTableList when constructing from below"); NS_ASSERTION(aToDo, "null nsTableList when constructing from below");
if (!aToDo)
return NS_ERROR_NULL_POINTER;
} }
nsCOMPtr<nsIStyleContext> parentStyleContext; nsCOMPtr<nsIStyleContext> parentStyleContext;

View File

@ -1394,6 +1394,8 @@ nsCSSFrameConstructor::ConstructTableGroupFrame(nsIPresShell* aPresShell,
: (NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP == styleDisplay->mDisplay); : (NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP == styleDisplay->mDisplay);
if (!contentDisplayIsGroup) { if (!contentDisplayIsGroup) {
NS_ASSERTION(aToDo, "null nsTableList when constructing from below"); NS_ASSERTION(aToDo, "null nsTableList when constructing from below");
if (!aToDo)
return NS_ERROR_NULL_POINTER;
} }
nsCOMPtr<nsIStyleContext> parentStyleContext; nsCOMPtr<nsIStyleContext> parentStyleContext;