mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 14:54:25 +00:00
Bug 1419762 - Return the inline continuation of an IB split when appending
Tag #1375
This commit is contained in:
@@ -6781,10 +6781,11 @@ nsCSSFrameConstructor::GetInsertionPrevSibling(InsertionPoint* aInsertion,
|
||||
*aIsAppend = true;
|
||||
if (IsFramePartOfIBSplit(aInsertion->mParentFrame)) {
|
||||
// Since we're appending, we'll walk to the last anonymous frame
|
||||
// that was created for the broken inline frame. But don't walk
|
||||
// to the trailing inline if it's empty; stop at the block.
|
||||
// that was created for the broken inline frame. We can walk to the
|
||||
// trailing inline, since we know this is a real append, and not an
|
||||
// insert (that would've been handled by `FindNextSibling`).
|
||||
aInsertion->mParentFrame =
|
||||
GetLastIBSplitSibling(aInsertion->mParentFrame, false);
|
||||
GetLastIBSplitSibling(aInsertion->mParentFrame, true);
|
||||
}
|
||||
// Get continuation that parents the last child.
|
||||
aInsertion->mParentFrame =
|
||||
|
||||
Reference in New Issue
Block a user