TextControl NG: Prepare to implement ::placeholder layout for INPUT elements
A textfield INPUT element has one or two block children; - Optional ::placeholder - TextControlInnerEditorElement or ::-webkit-textfield-decoration-container We need to lay out the latter first because the former's baseline should be aligned to the baseline of the latter, and the former should be painted earlier than the latter. This CL is a preparation to implement it. * NGContainerFragmentBuilder::AddChildInternal() inserts the fragment for ::placeholder before another child. * NGBlockLayoutAlgorithm::Layout() lays ::placeholder out after other children. This CL has no behavior changes. Bug: 1040826 Change-Id: Ib8768194c2a7e86cb162cb4470eac9881a22d11d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2503379 Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Reviewed-by:
Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#822531}
Showing
Please register or sign in to comment