mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-29 17:40:42 +00:00
Reparent view list when inserting a new frame after a :before pseudo-element. bug=343540 r+sr=roc
This commit is contained in:
parent
e5b3954d8b
commit
3af6592be5
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user