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 #
Dependent Patchsets: Messages
Total messages: 21 (13 generated)
|