Changeset 71734 in webkit


Ignore:
Timestamp:
Nov 10, 2010 5:54:10 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-11-10 Ilya Sherman <isherman@chromium.org>

Reviewed by Shinichiro Hamaji.

Fix autofill popup height computation -- take icon heights into account.
https://bugs.webkit.org/show_bug.cgi?id=49306

  • platform/chromium/PopupMenuChromium.cpp: (WebCore::PopupListBox::layout):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r71733 r71734  
     12010-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
    1112010-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
    212
  • trunk/WebCore/platform/chromium/PopupMenuChromium.cpp

    r71618 r71734  
    12561256    int baseWidth = 0;
    12571257    int paddingWidth = 0;
    1258     int y = 0;
    12591258    for (int i = 0; i < numItems(); ++i) {
    1260         // Place the item vertically.
    1261         m_items[i]->yOffset = y;
    12621259        if (m_popupClient->itemStyle(i).isDisplayNone())
    12631260            continue;
    12641261        Font itemFont = getRowFont(i);
    1265         y += itemFont.height();
    12661262
    12671263        // Ensure the popup is wide enough to fit this item.
     
    13041300
    13051301    for (int i = 0; i < m_visibleRows; ++i) {
     1302        // Place the item vertically.
    13061303        int rowHeight = getRowHeight(i);
     1304        m_items[i]->yOffset = windowHeight;
     1305
    13071306#if !OS(DARWIN)
    13081307        // Only clip the window height for non-Mac platforms.
Note: See TracChangeset for help on using the changeset viewer.