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

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

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: Fix README.md Created 4 years, 2 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/LayoutPart.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutPart.cpp b/third_party/WebKit/Source/core/layout/LayoutPart.cpp
index 642da2ab4eb93c91db825b55b0b8015686d7cc3c..f1ecd0e1b03513a5f5bce61ff20a90c00980abbb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutPart.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutPart.cpp
@@ -177,7 +177,7 @@ bool LayoutPart::nodeAtPoint(HitTestResult& result,
LayoutPoint adjustedLocation = accumulatedOffset + location();
LayoutPoint contentOffset = LayoutPoint(borderLeft() + paddingLeft(),
borderTop() + paddingTop()) -
- LayoutSize(childFrameView->scrollOffset());
+ LayoutSize(childFrameView->scrollOffsetInt());
HitTestLocation newHitTestLocation(locationInContainer,
-adjustedLocation - contentOffset);
HitTestRequest newHitTestRequest(result.hitTestRequest().type() |

Powered by Google App Engine
This is Rietveld 408576698