Changeset 77385 in webkit
- Timestamp:
- Feb 2, 2011 10:35:41 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r77384 r77385 1 2011-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 1 11 2011-02-02 David Hyatt <hyatt@apple.com> 2 12 -
trunk/Source/WebCore/platform/win/PopupMenuWin.cpp
r76743 r77385 348 348 int popupX = rScreenCoords.x() + client()->clientInsetLeft(); 349 349 350 IntRect popupRect(popupX, rScreenCoords. bottom(), popupWidth, popupHeight);350 IntRect popupRect(popupX, rScreenCoords.maxY(), popupWidth, popupHeight); 351 351 352 352 // The popup needs to stay within the bounds of the screen and not overlap any toolbars … … 354 354 355 355 // Check that we don't go off the screen vertically 356 if (popupRect. bottom() > screen.height()) {356 if (popupRect.maxY() > screen.height()) { 357 357 // The popup will go off the screen, so try placing it above the client 358 358 if (rScreenCoords.y() - popupRect.height() < 0) { … … 603 603 listRect.move(IntSize(0, m_scrollOffset * m_itemHeight)); 604 604 605 for (int y = listRect.y(); y < listRect. bottom(); y += m_itemHeight) {605 for (int y = listRect.y(); y < listRect.maxY(); y += m_itemHeight) { 606 606 int index = y / m_itemHeight; 607 607
Note: See TracChangeset
for help on using the changeset viewer.