Reparent view list when inserting a new frame after a :before pseudo-element. bug=343540 r+sr=roc

This commit is contained in:
uriber%gmail.com 2006-08-14 11:10:58 +00:00
parent e5b3954d8b
commit 3af6592be5

View File

@ -9640,7 +9640,9 @@ nsCSSFrameConstructor::ContentInserted(nsIContent* aContainer,
nsCSSPseudoElements::before)) {
// Insert the new frames after the last continuation of the :before pseudo-element
prevSibling = firstChild->GetLastContinuation();
parentFrame = prevSibling->GetParent();
nsIFrame* newParent = prevSibling->GetParent();
nsHTMLContainerFrame::ReparentFrameViewList(state.mPresContext, newFrame, parentFrame, newParent);
parentFrame = newParent;
}
}
state.mFrameManager->InsertFrames(parentFrame,