Index: Source/web/PopupListBox.cpp |
diff --git a/Source/web/PopupListBox.cpp b/Source/web/PopupListBox.cpp |
index 67c99142d31d6b23504121b08646580dc9b96ac3..a2d3bddffab5ba648ecffba62ae5301ebf1ddf89 100644 |
--- a/Source/web/PopupListBox.cpp |
+++ b/Source/web/PopupListBox.cpp |
@@ -93,7 +93,7 @@ PopupListBox::~PopupListBox() |
bool PopupListBox::handleMouseDownEvent(const PlatformMouseEvent& event) |
{ |
- Scrollbar* scrollbar = scrollbarAtPoint(event.position()); |
+ Scrollbar* scrollbar = scrollbarAtWindowPoint(event.position()); |
if (scrollbar) { |
m_capturingScrollbar = scrollbar; |
m_capturingScrollbar->mouseDown(event); |
@@ -113,7 +113,7 @@ bool PopupListBox::handleMouseMoveEvent(const PlatformMouseEvent& event) |
return true; |
} |
- Scrollbar* scrollbar = scrollbarAtPoint(event.position()); |
+ Scrollbar* scrollbar = scrollbarAtWindowPoint(event.position()); |
if (m_lastScrollbarUnderMouse != scrollbar) { |
// Send mouse exited to the old scrollbar. |
if (m_lastScrollbarUnderMouse) |