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

Unified Diff: Source/core/rendering/RenderView.cpp

Issue 919423002: Audited and renamed uses of methods and variables named RootView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Build fix Created 5 years, 10 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: Source/core/rendering/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index e92f5ffd3054a64e6402b2e3dd5b1d3702ca884a..399c64e36969be83bfadedaac13781f2f98750d9 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;

Powered by Google App Engine
This is Rietveld 408576698