Changeset 113430 in webkit


Ignore:
Timestamp:
Apr 6, 2012 6:50:05 AM (12 years ago)
Author:
leviw@chromium.org
Message:

Cleaning up unneeded FractionalLayoutUnit leakage into Win PopupMenu code.

Location:
branches/subpixellayout/Source/WebCore/platform/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/subpixellayout/Source/WebCore/platform/win/PopupMenuWin.cpp

    r112328 r113430  
    565565const int separatorPadding = 4;
    566566const int separatorHeight = 1;
    567 void PopupMenuWin::paint(const FractionalLayoutRect& damageRect, HDC hdc)
     567void PopupMenuWin::paint(const IntRect& damageRect, HDC hdc)
    568568{
    569569    if (!m_popup)
     
    606606
    607607    // listRect is the damageRect translated into the coordinates of the entire menu list (which is itemCount * m_itemHeight pixels tall)
    608     LayoutRect listRect = damageRect;
     608    IntRect listRect = damageRect;
    609609    listRect.move(IntSize(0, m_scrollOffset * m_itemHeight));
    610610
     
    663663
    664664    if (m_scrollbar)
    665         m_scrollbar->paint(&context, pixelSnappedIntRect(damageRect));
     665        m_scrollbar->paint(&context, damageRect);
    666666
    667667    HWndDC hWndDC;
  • branches/subpixellayout/Source/WebCore/platform/win/PopupMenuWin.h

    r108552 r113430  
    7373    void focusLast();
    7474
    75     void paint(const FractionalLayoutRect& damageRect, HDC = 0);
     75    void paint(const IntRect& damageRect, HDC = 0);
    7676
    7777    HWND popupHandle() const { return m_popup; }
Note: See TracChangeset for help on using the changeset viewer.