Index: third_party/WebKit/Source/web/ExternalPopupMenu.cpp |
diff --git a/third_party/WebKit/Source/web/ExternalPopupMenu.cpp b/third_party/WebKit/Source/web/ExternalPopupMenu.cpp |
index 7d62cd915242fd9b1d12be51699200d70fef9a8e..08a0348e6b089e9ea41ca48f4d367f4f0e3077ab 100644 |
--- a/third_party/WebKit/Source/web/ExternalPopupMenu.cpp |
+++ b/third_party/WebKit/Source/web/ExternalPopupMenu.cpp |
@@ -264,7 +264,7 @@ void ExternalPopupMenu::getPopupMenuInfo(WebPopupMenuInfo& info, HTMLSelectEleme |
const ComputedStyle& menuStyle = ownerElement.computedStyle() ? *ownerElement.computedStyle() : *ownerElement.ensureComputedStyle(); |
info.itemHeight = menuStyle.font().getFontMetrics().height(); |
info.itemFontSize = static_cast<int>(menuStyle.font().getFontDescription().computedSize()); |
- info.selectedIndex = toExternalPopupMenuItemIndex(ownerElement.optionToListIndex(ownerElement.selectedIndex()), ownerElement); |
+ info.selectedIndex = toExternalPopupMenuItemIndex(ownerElement.selectedListIndex(), ownerElement); |
info.rightAligned = menuStyle.direction() == RTL; |
info.allowMultipleSelection = ownerElement.multiple(); |
if (count < itemCount) |