Fixed a problem in ContentRemoved() where for fixed position frames the

wrong child list name was being used
This commit is contained in:
troy%netscape.com 1999-07-24 03:58:35 +00:00
parent 8dad60d09d
commit e337ad496d
2 changed files with 4 additions and 2 deletions

View File

@ -4755,7 +4755,8 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
nsIFrame* parentFrame;
childFrame->GetParent(&parentFrame);
rv = parentFrame->RemoveFrame(*aPresContext, *shell,
nsLayoutAtoms::absoluteList, childFrame);
(NS_STYLE_POSITION_FIXED == position->mPosition) ?
nsLayoutAtoms::fixedList : nsLayoutAtoms::absoluteList, childFrame);
// Now the placeholder frame
if (nsnull != placeholderFrame) {

View File

@ -4755,7 +4755,8 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
nsIFrame* parentFrame;
childFrame->GetParent(&parentFrame);
rv = parentFrame->RemoveFrame(*aPresContext, *shell,
nsLayoutAtoms::absoluteList, childFrame);
(NS_STYLE_POSITION_FIXED == position->mPosition) ?
nsLayoutAtoms::fixedList : nsLayoutAtoms::absoluteList, childFrame);
// Now the placeholder frame
if (nsnull != placeholderFrame) {