Title: [113430] branches/subpixellayout/Source/WebCore/platform/win
Revision
113430
Author
[email protected]
Date
2012-04-06 06:50:05 -0700 (Fri, 06 Apr 2012)

Log Message

Cleaning up unneeded FractionalLayoutUnit leakage into Win PopupMenu code.

Modified Paths

Diff

Modified: branches/subpixellayout/Source/WebCore/platform/win/PopupMenuWin.cpp (113429 => 113430)


--- branches/subpixellayout/Source/WebCore/platform/win/PopupMenuWin.cpp	2012-04-06 12:53:37 UTC (rev 113429)
+++ branches/subpixellayout/Source/WebCore/platform/win/PopupMenuWin.cpp	2012-04-06 13:50:05 UTC (rev 113430)
@@ -564,7 +564,7 @@
 
 const int separatorPadding = 4;
 const int separatorHeight = 1;
-void PopupMenuWin::paint(const FractionalLayoutRect& damageRect, HDC hdc)
+void PopupMenuWin::paint(const IntRect& damageRect, HDC hdc)
 {
     if (!m_popup)
         return;
@@ -605,7 +605,7 @@
     int itemCount = client()->listSize();
 
     // listRect is the damageRect translated into the coordinates of the entire menu list (which is itemCount * m_itemHeight pixels tall)
-    LayoutRect listRect = damageRect;
+    IntRect listRect = damageRect;
     listRect.move(IntSize(0, m_scrollOffset * m_itemHeight));
 
     for (int y = listRect.y(); y < listRect.maxY(); y += m_itemHeight) {
@@ -662,7 +662,7 @@
     }
 
     if (m_scrollbar)
-        m_scrollbar->paint(&context, pixelSnappedIntRect(damageRect));
+        m_scrollbar->paint(&context, damageRect);
 
     HWndDC hWndDC;
     HDC localDC = hdc ? hdc : hWndDC.setHWnd(m_popup);

Modified: branches/subpixellayout/Source/WebCore/platform/win/PopupMenuWin.h (113429 => 113430)


--- branches/subpixellayout/Source/WebCore/platform/win/PopupMenuWin.h	2012-04-06 12:53:37 UTC (rev 113429)
+++ branches/subpixellayout/Source/WebCore/platform/win/PopupMenuWin.h	2012-04-06 13:50:05 UTC (rev 113430)
@@ -72,7 +72,7 @@
     void focusFirst();
     void focusLast();
 
-    void paint(const FractionalLayoutRect& damageRect, HDC = 0);
+    void paint(const IntRect& damageRect, HDC = 0);
 
     HWND popupHandle() const { return m_popup; }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to