Chromium Code Reviews
DescriptionSELECT element: Improve performance of HTMLSelectElement::optionIndexToBeShown().
It was usually O(N). This CL makes it O(1) by changing the return value from
index to HTMLOptionElement*, and renames it to optionToBeShown().
Also,
- Change the argument type of LayoutMenuList::didSetSelectionIndex and
didUpdateActiveOption; index -> HTMLOptionElement*.
- Rename didSetSelectionIndex to didSelectOption.
- Merge LayoutMenuList::setTextFromOption into updateFromElement.
BUG=577989
Committed: https://crrev.com/c9df91f8cc501a4a952eb08877c3c3e6b2ca01bb
Cr-Commit-Position: refs/heads/master@{#404157}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||