Index: Source/core/rendering/RenderView.cpp |
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp |
index 8e54ecd752911d3713468f519b22b758e9d8cf5f..62edf55926b053bdbb53785e47ff82d2e162c496 100644 |
--- a/Source/core/rendering/RenderView.cpp |
+++ b/Source/core/rendering/RenderView.cpp |
@@ -101,8 +101,8 @@ bool RenderView::hitTest(const HitTestRequest& request, const HitTestLocation& l |
// FrameView scrollbars are not the same as Layer scrollbars tested by Layer::hitTestOverflowControls, |
// so we need to test FrameView scrollbars separately here. Note that it's important we do this after |
// the hit test above, because that may overwrite the entire HitTestResult when it finds a hit. |
- IntPoint viewPoint = location.roundedPoint() - frameView()->scrollOffset(); |
- if (Scrollbar* frameScrollbar = frameView()->scrollbarAtViewPoint(viewPoint)) |
+ IntPoint framePoint = frameView()->contentsToFrame(location.roundedPoint()); |
+ if (Scrollbar* frameScrollbar = frameView()->scrollbarAtFramePoint(framePoint)) |
result.setScrollbar(frameScrollbar); |
return hitLayer; |