TextControl NG: Add runtime flags
This CL adds two flags, LayoutNGTextArea for <input> and LayoutNGTextField for <textarea>. They depend on EditingNG flag. SearchFieldCancelButtonElement and EditingViewPortElement refer to LayoutNGTextField flag because only <input> uses them. Both of <input> and <textarea> use TextControlInnerEditorElement. So its TypeShouldForceLegacyLayout() checks the host element type. This CL has no behavior changes. These flags are not enabled yet. Bug: 1040826 Change-Id: I1caf433edb57ab2fec21c17744eff166d0a4deee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2444636Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#813188}
Showing
Please register or sign in to comment