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

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 test 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..005f146e898bfdb45c9d60e128124a0318cf9e40 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
@@ -216,6 +216,12 @@ void HitTestResult::setURLElement(Element* n) {
m_innerURLElement = n;
}
+Scrollbar* HitTestResult::scrollbar() const {
+ // TODO(bokan) to remove
+ return (m_scrollbar.get() && m_scrollbar.get()->enabled()) ? m_scrollbar.get()
+ : nullptr;
+}
+
void HitTestResult::setScrollbar(Scrollbar* s) {
m_scrollbar = s;
}

Powered by Google App Engine
This is Rietveld 408576698