SELECT 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

Review-Url: https://codereview.chromium.org/2126023005
Cr-Commit-Position: refs/heads/master@{#404157}
4 files changed