diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:29:19 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:29:19 -0400 |
commit | 38056aa9c931ef7e769f7fd42613318dc8aeb77b (patch) | |
tree | bceb41acda025822f80a5f0b339c8eeefd7e95d9 /layout/base/nsCSSFrameConstructor.cpp | |
parent | fd7a325bc08f1f027b692181b6c7ab5efaf619aa (diff) | |
download | UXP-38056aa9c931ef7e769f7fd42613318dc8aeb77b.tar UXP-38056aa9c931ef7e769f7fd42613318dc8aeb77b.tar.gz UXP-38056aa9c931ef7e769f7fd42613318dc8aeb77b.tar.lz UXP-38056aa9c931ef7e769f7fd42613318dc8aeb77b.tar.xz UXP-38056aa9c931ef7e769f7fd42613318dc8aeb77b.zip |
Bug 1419762 - Return the inline continuation of an IB split when appending
Tag #1375
Diffstat (limited to 'layout/base/nsCSSFrameConstructor.cpp')
-rw-r--r-- | layout/base/nsCSSFrameConstructor.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index f69ffe603..c7312dafb 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -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 = |