зеркало из https://github.com/mozilla/gecko-dev.git
Fix an "ASSERTION: same old and new parent frame". b=348708 r+sr=bzbarsky
This commit is contained in:
Родитель
4eb6cb5cae
Коммит
4222509024
|
@ -9638,11 +9638,15 @@ nsCSSFrameConstructor::ContentInserted(nsIContent* aContainer,
|
|||
if (firstChild &&
|
||||
nsLayoutUtils::IsGeneratedContentFor(aContainer, firstChild,
|
||||
nsCSSPseudoElements::before)) {
|
||||
// Insert the new frames after the last continuation of the :before pseudo-element
|
||||
// Insert the new frames after the last continuation of the :before
|
||||
prevSibling = firstChild->GetLastContinuation();
|
||||
nsIFrame* newParent = prevSibling->GetParent();
|
||||
nsHTMLContainerFrame::ReparentFrameViewList(state.mPresContext, newFrame, parentFrame, newParent);
|
||||
parentFrame = newParent;
|
||||
if (newParent != parentFrame) {
|
||||
nsHTMLContainerFrame::ReparentFrameViewList(state.mPresContext,
|
||||
newFrame, parentFrame,
|
||||
newParent);
|
||||
parentFrame = newParent;
|
||||
}
|
||||
}
|
||||
}
|
||||
state.mFrameManager->InsertFrames(parentFrame,
|
||||
|
|
Загрузка…
Ссылка в новой задаче