Changeset 44438 in webkit


Ignore:
Timestamp:
Jun 4, 2009 4:01:51 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-06-04 Paul Godavari <paul@chromium.org>

Reviewed by Eric Seidel.

Initialize the width of PopupMenuListBox properly for Mac Chromium.

Added a test that works only with this patch applied. The test is
a manual one, since the hit testing infrastructure in the layout
tests sends keyboard and mouse events to the main window and not
the cocoa control that implements the popup up, which means we can't
select items from the popup up.

https://bugs.webkit.org/show_bug.cgi?id=25904

  • manual-tests/select-narrow-width.html: Added.
  • platform/chromium/PopupMenuChromium.cpp: (WebCore::PopupListBox::PopupListBox): (WebCore::PopupContainer::showExternal):
Location:
trunk/WebCore
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r44436 r44438  
     12009-06-04  Paul Godavari  <paul@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Initialize the width of PopupMenuListBox properly for Mac Chromium.
     6
     7        Added a test that works only with this patch applied. The test is
     8        a manual one, since the hit testing infrastructure in the layout
     9        tests sends keyboard and mouse events to the main window and not
     10        the cocoa control that implements the popup up, which means we can't
     11        select items from the popup up.
     12
     13        https://bugs.webkit.org/show_bug.cgi?id=25904
     14
     15
     16        * manual-tests/select-narrow-width.html: Added.
     17        * platform/chromium/PopupMenuChromium.cpp:
     18        (WebCore::PopupListBox::PopupListBox):
     19        (WebCore::PopupContainer::showExternal):
     20
    1212009-06-04  Brent Fulgham  <bfulgham@webkit.org>
    222
  • trunk/WebCore/platform/chromium/PopupMenuChromium.cpp

    r44312 r44438  
    156156        , m_willAcceptOnAbandon(false)
    157157        , m_visibleRows(0)
     158        , m_baseWidth(0)
    158159        , m_popupClient(client)
    159160        , m_repeatingChar(0)
     
    351352        return;
    352353
     354    listBox()->setBaseWidth(rect.width());
    353355    listBox()->updateFromElement();
    354356
Note: See TracChangeset for help on using the changeset viewer.