Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Unified Diff: third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h

Issue 2122773002: Skip past nested empty inlines at the start of lines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@467579
Patch Set: bug 493077 Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/inline/leading-space-after-nested-empty-inlines-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/inline/leading-space-after-nested-empty-inlines-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698