Changeset 77385 in webkit


Ignore:
Timestamp:
Feb 2, 2011 10:35:41 AM (13 years ago)
Author:
hyatt@apple.com
Message:

More conversion from right()/bottom() to maxX()/maxY().

Reviewed by Darin Adler.

  • platform/win/PopupMenuWin.cpp:

(WebCore::PopupMenuWin::calculatePositionAndSize):
(WebCore::PopupMenuWin::paint):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r77384 r77385  
     12011-02-02  David Hyatt  <hyatt@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        More conversion from right()/bottom() to maxX()/maxY().
     6
     7        * platform/win/PopupMenuWin.cpp:
     8        (WebCore::PopupMenuWin::calculatePositionAndSize):
     9        (WebCore::PopupMenuWin::paint):
     10
    1112011-02-02  David Hyatt  <hyatt@apple.com>
    212
  • trunk/Source/WebCore/platform/win/PopupMenuWin.cpp

    r76743 r77385  
    348348    int popupX = rScreenCoords.x() + client()->clientInsetLeft();
    349349
    350     IntRect popupRect(popupX, rScreenCoords.bottom(), popupWidth, popupHeight);
     350    IntRect popupRect(popupX, rScreenCoords.maxY(), popupWidth, popupHeight);
    351351
    352352    // The popup needs to stay within the bounds of the screen and not overlap any toolbars
     
    354354
    355355    // Check that we don't go off the screen vertically
    356     if (popupRect.bottom() > screen.height()) {
     356    if (popupRect.maxY() > screen.height()) {
    357357        // The popup will go off the screen, so try placing it above the client
    358358        if (rScreenCoords.y() - popupRect.height() < 0) {
     
    603603    listRect.move(IntSize(0, m_scrollOffset * m_itemHeight));
    604604
    605     for (int y = listRect.y(); y < listRect.bottom(); y += m_itemHeight) {
     605    for (int y = listRect.y(); y < listRect.maxY(); y += m_itemHeight) {
    606606        int index = y / m_itemHeight;
    607607
Note: See TracChangeset for help on using the changeset viewer.