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:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user