TextControl NG: Support LayoutNG in TextControlElement::ValueWithHardLineBreaks()
The function iterates over RootInlineBoxes, which are not used in LayoutNG. This CL adds LayoutNG FragmentItem support to ValueWithHardLineBreaks(). The new code in ValueWithHardLineBreaks() is almost equivalent to the existing NodeTraversal loop, and this CL introduces GetNextSoftBreak() function for FragmentItem. This CL fixes textarea-wrap-submission-value.html test with LayoutNGTextArea flag, but this doesn't change any user-visible behavior yet. Bug: 1040826 Change-Id: Ice5e3954df7cd0f8ccb4f1e94d9057be5cbcc3cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454893Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:
Koji Ishii <kojii@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#815074}
Showing
Please register or sign in to comment