| Index: Source/core/rendering/RenderInline.cpp
|
| diff --git a/Source/core/rendering/RenderInline.cpp b/Source/core/rendering/RenderInline.cpp
|
| index 92d87c1eb3f6b86f82e070f7071130794bc289f6..63f310f57a8c9bf4c76ddeda07bfacf852826af7 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);
|
| }
|
| }
|
|
|
|
|