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

Unified Diff: third_party/WebKit/Source/core/layout/HitTestResult.cpp

Issue 2389073002: Fix link's hover state if the link under scrollbar (Closed)
Patch Set: fix for bokan's comments Created 4 years, 1 month 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
Index: third_party/WebKit/Source/core/layout/HitTestResult.cpp
diff --git a/third_party/WebKit/Source/core/layout/HitTestResult.cpp b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
index 51e0fd88c3ff825195f8cd7064d38816ed04619d..f7657017f2b5408784a11a0c3c31753c6a49f649 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
@@ -216,6 +216,11 @@ void HitTestResult::setURLElement(Element* n) {
m_innerURLElement = n;
}
+Scrollbar* HitTestResult::scrollbar() const {
+ return (m_scrollbar.get() && m_scrollbar.get()->enabled()) ? m_scrollbar.get()
bokan 2016/11/02 21:36:34 So I actually found out this already exists in Scr
+ : nullptr;
+}
+
void HitTestResult::setScrollbar(Scrollbar* s) {
m_scrollbar = s;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestResult.h ('k') | third_party/WebKit/Source/core/page/ChromeClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698