SELECT element: Remove HTMLSelectElement::optionToListIndex().
Remove two instances of optionToListIndex() callsites, and remove
optionToListIndex().
* HTMLSelectElement::hasPlaceholderLabelOption():
optionToListIndex() was just redundant. We need to check just
isHTMLOptionElement(listItems()[0]).
* HTMLSelectElement::remove():
We can use item() to get an OPTION at the specified index.
This CL has no behavior changes.
Review-Url: https://codereview.chromium.org/2147223004
Cr-Commit-Position: refs/heads/master@{#405690}
2 files changed