[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}
Showing
Please register or sign in to comment