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

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

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: 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 f0a1809b12143e7c16126ca43e8c47c854654216..9156c0cfbe3164f903774787c39169fdc356dbee 100644
--- a/third_party/WebKit/Source/core/layout/LayoutPart.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutPart.cpp
@@ -178,7 +178,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