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

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: add 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..011932aa88d00cc217c9f9250113ddbc1ad2d552 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
@@ -217,6 +217,9 @@ void HitTestResult::setURLElement(Element* n) {
}
void HitTestResult::setScrollbar(Scrollbar* s) {
+ // ignore the hidden scrollbar
+ if (!s->enabled())
bokan 2016/11/01 21:09:37 Hmm, in the case of regular, non-overlay scrollbar
+ return;
m_scrollbar = s;
}

Powered by Google App Engine
This is Rietveld 408576698