b=21903. Fixes a crash when absolutely positioning a form element. The

problem was no space manager was getting created for the form's frame


git-svn-id: svn://10.0.0.236/trunk@63004 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
2000-03-15 04:38:08 +00:00
parent 835feeed94
commit a0f2ac4e06
2 changed files with 8 additions and 2 deletions

View File

@@ -3882,7 +3882,10 @@ nsCSSFrameConstructor::ConstructFrameByTag(nsIPresShell* aPresShell,
rv = NS_NewObjectFrame(aPresShell, &newFrame);
}
else if (nsHTMLAtoms::form == aTag) {
rv = NS_NewFormFrame(aPresShell, &newFrame, 0);
PRBool isOutOfFlow = isFloating || isAbsolutelyPositioned || isFixedPositioned;
rv = NS_NewFormFrame(aPresShell, &newFrame,
isOutOfFlow ? NS_BLOCK_SPACE_MGR|NS_BLOCK_MARGIN_ROOT : 0);
processChildren = PR_TRUE;
}
else if (nsHTMLAtoms::frameset == aTag) {

View File

@@ -3882,7 +3882,10 @@ nsCSSFrameConstructor::ConstructFrameByTag(nsIPresShell* aPresShell,
rv = NS_NewObjectFrame(aPresShell, &newFrame);
}
else if (nsHTMLAtoms::form == aTag) {
rv = NS_NewFormFrame(aPresShell, &newFrame, 0);
PRBool isOutOfFlow = isFloating || isAbsolutelyPositioned || isFixedPositioned;
rv = NS_NewFormFrame(aPresShell, &newFrame,
isOutOfFlow ? NS_BLOCK_SPACE_MGR|NS_BLOCK_MARGIN_ROOT : 0);
processChildren = PR_TRUE;
}
else if (nsHTMLAtoms::frameset == aTag) {