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 29c2a12bbd201de96246985cbc89cfb602c002c2..f5bedd327c8ca7c990d483ab8f977fb2565a76b4 100644 |
--- a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h |
+++ b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h |
@@ -412,6 +412,9 @@ inline bool shouldSkipWhitespaceAfterStartObject(LineLayoutBlockFlow block, Line |
while (next && next.isFloatingOrOutOfFlowPositioned()) |
next = bidiNextSkippingEmptyInlines(block, next); |
+ if (next && isEmptyInline(next)) |
+ next = LineLayoutInline(next).firstChild(); |
+ |
if (next && !next.isBR() && next.isText() && LineLayoutText(next).textLength() > 0) { |
LineLayoutText nextText(next); |
UChar nextChar = nextText.characterAt(0); |