| Index: third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
|
| diff --git a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
|
| index c123a226e44773465d4dc62328234378a4bce34f..aa39071d709663cc6410735c909bbbc2ad70395a 100644
|
| --- a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
|
| +++ b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
|
| @@ -417,8 +417,10 @@ inline bool shouldSkipWhitespaceAfterStartObject(LineLayoutBlockFlow block, Line
|
| while (next && next.isFloatingOrOutOfFlowPositioned())
|
| next = bidiNextSkippingEmptyInlines(block, next);
|
|
|
| - if (next && isEmptyInline(next))
|
| - next = LineLayoutInline(next).firstChild();
|
| + while (next && isEmptyInline(next)) {
|
| + LineLayoutItem child = LineLayoutInline(next).firstChild();
|
| + next = child ? child : bidiNextSkippingEmptyInlines(block, next);
|
| + }
|
|
|
| if (next && !next.isBR() && next.isText() && LineLayoutText(next).textLength() > 0) {
|
| LineLayoutText nextText(next);
|
|
|