Changeset 71734 in webkit
- Timestamp:
- Nov 10, 2010 5:54:10 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r71733 r71734 1 2010-11-10 Ilya Sherman <isherman@chromium.org> 2 3 Reviewed by Shinichiro Hamaji. 4 5 Fix autofill popup height computation -- take icon heights into account. 6 https://bugs.webkit.org/show_bug.cgi?id=49306 7 8 * platform/chromium/PopupMenuChromium.cpp: 9 (WebCore::PopupListBox::layout): 10 1 11 2010-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org> 2 12 -
trunk/WebCore/platform/chromium/PopupMenuChromium.cpp
r71618 r71734 1256 1256 int baseWidth = 0; 1257 1257 int paddingWidth = 0; 1258 int y = 0;1259 1258 for (int i = 0; i < numItems(); ++i) { 1260 // Place the item vertically.1261 m_items[i]->yOffset = y;1262 1259 if (m_popupClient->itemStyle(i).isDisplayNone()) 1263 1260 continue; 1264 1261 Font itemFont = getRowFont(i); 1265 y += itemFont.height();1266 1262 1267 1263 // Ensure the popup is wide enough to fit this item. … … 1304 1300 1305 1301 for (int i = 0; i < m_visibleRows; ++i) { 1302 // Place the item vertically. 1306 1303 int rowHeight = getRowHeight(i); 1304 m_items[i]->yOffset = windowHeight; 1305 1307 1306 #if !OS(DARWIN) 1308 1307 // Only clip the window height for non-Mac platforms.
Note: See TracChangeset
for help on using the changeset viewer.