Description[LayoutNG] Add "Control" NGInlineItemType for newlines and tabs
This patch changes preserved newlines and tabs to create separate
NGInlineItem with kControl type.
These control characters need separate code path to measure and to break
lines. Having separate NGInlineItem helps doing them easier.
Also supports LayoutBR, which does not set to preserve newlines in
style.
In doing so, the complexity of conditional branches in a loop was
increased that preserving spaces and preserving newlines got their own
loops.
BUG=636993
Review-Url: https://codereview.chromium.org/2870413005
Cr-Commit-Position: refs/heads/master@{#471333}
Committed: https://chromium.googlesource.com/chromium/src/+/43d6ef93d6c8b62d4b2f09b906268aa7440ca8c1
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Messages
Total messages: 17 (13 generated)
|