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

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

Issue 1444973002: Collapse whitespace after list markers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 5 years, 1 month 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
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);

Powered by Google App Engine
This is Rietveld 408576698