Bug 1510080 - Fix appending into a fragmented fieldset. r=TYLin

Differential Revision: https://phabricator.services.mozilla.com/D13079
This commit is contained in:
Emilio Cobos Álvarez
2018-11-29 21:54:57 +00:00
parent 1a4a7ac771
commit 89ff1f8802
3 changed files with 18 additions and 2 deletions

View File

@@ -6583,12 +6583,14 @@ nsCSSFrameConstructor::GetInsertionPrevSibling(InsertionPoint* aInsertion,
} else {
// No previous or next sibling, so treat this like an appended frame.
*aIsAppend = true;
aInsertion->mParentFrame =
::ContinuationToAppendTo(aInsertion->mParentFrame);
// Deal with fieldsets.
aInsertion->mParentFrame =
::GetAdjustedParentFrame(aInsertion->mParentFrame, aChild);
aInsertion->mParentFrame =
::ContinuationToAppendTo(aInsertion->mParentFrame);
prevSibling = ::FindAppendPrevSibling(aInsertion->mParentFrame, nullptr);
}
}