Chromium Code Reviews| Index: Source/core/html/HTMLSelectElement.cpp |
| diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
| index d44db4e8a8612bc7bdb78ff28c9f57618c271100..89425d7a02c13e1bd9b3caf212f93a8a12110fca 100644 |
| --- a/Source/core/html/HTMLSelectElement.cpp |
| +++ b/Source/core/html/HTMLSelectElement.cpp |
| @@ -1205,10 +1205,6 @@ void HTMLSelectElement::handlePopupOpenKeyboardEvent(Event* event) |
| saveLastSelection(); |
| if (RenderMenuList* menuList = toRenderMenuList(renderer())) |
| menuList->showPopup(); |
| - int index = selectedIndex(); |
| - ASSERT(index >= 0); |
| - ASSERT_WITH_SECURITY_IMPLICATION(index < static_cast<int>(listItems().size())); |
| - setSelectedIndex(index); |
|
tkent
2014/12/15 08:56:25
Hmm, setSelectedIndex(selectedIndex()) looks to do
keishi
2014/12/15 09:01:21
Yup
|
| event->setDefaultHandled(); |
| return; |
| } |