Improve performance of updating shadow text in menulist SELECTs
HTMLSelectElement::UpdateMenuListLabel() detached and created Text nodes every time by Element's textContent setter, and it was inefficient. We should keep one Text node, and UpdateMenuListLabel() should update the nodeValue of the Text node. Bug: 1048572 Change-Id: Ifef39627b00cc5345a2b0d53ac652e45d064e941 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040853Reviewed-by:Koji Ishii <kojii@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#739284}
Showing
Please register or sign in to comment