From 1f10b16dec9f208b6cf051c3471f2ceaf97f6d03 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Sat, 24 Jul 1999 03:58:35 +0000 Subject: [PATCH] Fixed a problem in ContentRemoved() where for fixed position frames the wrong child list name was being used git-svn-id: svn://10.0.0.236/trunk@40962 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 3 ++- mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 5e7ea23ba21..08a87251d43 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -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) { diff --git a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp index 5e7ea23ba21..08a87251d43 100644 --- a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -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) {