Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutView.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
| index cdd7bf2d338a1413639fd2884df799b0706fe8bc..25e66cae3647375ea7e1220c11d22b869c4a9064 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
| @@ -164,6 +164,12 @@ bool LayoutView::HitTestNoLifecycleUpdate(HitTestResult& result) { |
| if (scrollable_area && scrollable_area->GetLayoutBox() && |
| scrollable_area->GetLayoutBox()->GetNode()) { |
| Node* node = scrollable_area->GetLayoutBox()->GetNode(); |
| + |
| + // If scrollbar belong's to Document, we should set innerNode to |
|
bokan
2017/06/06 21:02:30
nit: belong's -> belongs
|
| + // HTMLElement to match other browser. |
|
bokan
2017/06/06 21:02:30
HTMLElement is a class, to prevent confusion I'd r
|
| + if (node->IsDocumentNode()) |
| + node = node->GetDocument().documentElement(); |
| + |
| result.SetInnerNode(node); |
| result.SetURLElement(node->EnclosingLinkEventParentOrSelf()); |
| } |