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

Issue 2749013003: [LayoutNG] Fix whitespace collapsing when a node is a newline (Closed)

Created:
3 years, 9 months ago by kojii
Modified:
3 years, 9 months ago
Reviewers:
eae
CC:
atotic+reviews_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, cbiesinger, chromium-reviews, dgrogan+ng_chromium.org, eae+blinkwatch, glebl+reviews_chromium.org, jchaffraix+rendering, leviw+renderwatch, ojan+watch_chromium.org, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[LayoutNG] Fix whitespace collapsing when a node is a newline This patch fixes to handle a text node that contains only a collapsible newline. Before this change, collapsible newlines were lazily appended, when following text is appended. When a text node contains only collapsible newlines, NGLayoutInlineItemsBuilder does not keep the node and thus unable to append lazily. This patch changes to append pending collapsible newlines first, then remove later if it needed to be collapsed. BUG=636993 Review-Url: https://codereview.chromium.org/2749013003 Cr-Commit-Position: refs/heads/master@{#457339} Committed: https://chromium.googlesource.com/chromium/src/+/3e651a1204f7bc387b1c077699e3a95348e1f525

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -75 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.h View 3 chunks +10 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.cc View 8 chunks +70 lines, -57 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder_test.cc View 3 chunks +19 lines, -11 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (13 generated)
kojii
PTAL. The crashes in the atomic inline CL I briefly mentioned turned out that because ...
3 years, 9 months ago (2017-03-15 11:31:23 UTC) #7
eae
Good catch, this is great! LGTM
3 years, 9 months ago (2017-03-15 16:22:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749013003/1
3 years, 9 months ago (2017-03-15 16:34:14 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/384150)
3 years, 9 months ago (2017-03-15 17:50:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749013003/1
3 years, 9 months ago (2017-03-15 18:30:32 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/407589)
3 years, 9 months ago (2017-03-15 20:21:49 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749013003/1
3 years, 9 months ago (2017-03-16 02:38:43 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 03:35:22 UTC) #21
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/3e651a1204f7bc387b1c077699e3...

Powered by Google App Engine
This is Rietveld 408576698