| Index: Source/core/rendering/RenderInline.cpp
|
| diff --git a/Source/core/rendering/RenderInline.cpp b/Source/core/rendering/RenderInline.cpp
|
| index 9578848541df30db29b4a33b81c9ea262ba86f35..77c9d39d9514b6e3433a9ff89732586461131e8b 100644
|
| --- a/Source/core/rendering/RenderInline.cpp
|
| +++ b/Source/core/rendering/RenderInline.cpp
|
| @@ -514,12 +514,11 @@ void RenderInline::addChildToContinuation(RenderObject* newChild, RenderObject*
|
| else {
|
| // The goal here is to match up if we can, so that we can coalesce and create the
|
| // minimal # of continuations needed for the inline.
|
| - if (childInline == bcpInline)
|
| + if (childInline == bcpInline || (beforeChild && beforeChild->isInline()))
|
| return beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
|
| - else if (flowInline == childInline)
|
| + if (flowInline == childInline)
|
| return flow->addChildIgnoringContinuation(newChild, 0); // Just treat like an append.
|
| - else
|
| - return beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
|
| + return beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
|
| }
|
| }
|
|
|
|
|