Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1764)

Unified Diff: Source/web/PopupListBox.cpp

Issue 527263002: Clean-up hit-testing of scrollbars (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix scrollbar-ticks-hittest test Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/scroll/ScrollView.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/platform/scroll/ScrollView.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698