mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-01 19:39:13 +00:00
Fixed a problem in ContentRemoved() where for fixed position frames the
wrong child list name was being used
This commit is contained in:
parent
8dad60d09d
commit
e337ad496d
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user