| Index: Source/WebCore/platform/chromium/PopupListBox.cpp
|
| ===================================================================
|
| --- Source/WebCore/platform/chromium/PopupListBox.cpp (revision 130911)
|
| +++ Source/WebCore/platform/chromium/PopupListBox.cpp (working copy)
|
| @@ -614,12 +614,16 @@
|
|
|
| int PopupListBox::getRowHeight(int index)
|
| {
|
| + int minimumHeight = PopupMenuChromium::minimumRowHeight();
|
| + if (m_settings.deviceSupportsTouch)
|
| + minimumHeight = max(minimumHeight, PopupMenuChromium::optionRowHeightForTouch());
|
| +
|
| if (index < 0 || m_popupClient->itemStyle(index).isDisplayNone())
|
| - return PopupMenuChromium::minimumRowHeight();
|
| + return minimumHeight;
|
|
|
| // Separator row height is the same size as itself.
|
| if (m_popupClient->itemIsSeparator(index))
|
| - return max(separatorHeight, (PopupMenuChromium::minimumRowHeight()));
|
| + return max(separatorHeight, minimumHeight);
|
|
|
| String icon = m_popupClient->itemIcon(index);
|
| RefPtr<Image> image(Image::loadPlatformResource(icon.utf8().data()));
|
| @@ -629,7 +633,7 @@
|
|
|
| int linePaddingHeight = m_popupClient->menuStyle().menuType() == PopupMenuStyle::AutofillPopup ? kLinePaddingHeight : 0;
|
| int calculatedRowHeight = max(fontHeight, iconHeight) + linePaddingHeight * 2;
|
| - return max(calculatedRowHeight, PopupMenuChromium::minimumRowHeight());
|
| + return max(calculatedRowHeight, minimumHeight);
|
| }
|
|
|
| IntRect PopupListBox::getRowBounds(int index)
|
|
|