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

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

Issue 2784313002: Change hittest node to be scrollbar's parent when hittest include a scrollbar (Closed)
Patch Set: mustaq comments addressed Created 3 years, 8 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
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 ec41d464421cb2290a87b1ff729485ac7090e1ff..23250c7f7b9b79bfdedb91a9cd1f96a5410f0d83 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
@@ -218,7 +218,11 @@ HTMLAreaElement* HitTestResult::imageAreaForImage() const {
void HitTestResult::setInnerNode(Node* n) {
m_innerPossiblyPseudoNode = n;
- if (n && n->isPseudoElement())
+ if (!n) {
+ m_innerNode = n;
+ return;
+ }
+ if (n->isPseudoElement())
n = toPseudoElement(n)->findAssociatedNode();
m_innerNode = n;
if (HTMLAreaElement* area = imageAreaForImage()) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestResult.h ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698