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

Unified Diff: third_party/WebKit/Source/web/LinkHighlightImpl.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/web/LinkHighlightImpl.cpp
diff --git a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
index b3010ba5c52821c58defabd79a080ad977c998ee..a9db55e8cd7fe7df291ffcaffc3ed751727f30a7 100644
--- a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
+++ b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
@@ -264,11 +264,10 @@ bool LinkHighlightImpl::computeHighlightLayerPathAndPosition(
// Scrolling content layers have the same offset from layout object as the
// non-scrolling layers. Thus we need to adjust for their scroll offset.
if (m_isScrollingGraphicsLayer) {
- DoubleSize adjustedScrollOffset = paintInvalidationContainer.layer()
- ->getScrollableArea()
- ->adjustedScrollOffset();
- absoluteQuad.move(adjustedScrollOffset.width(),
- adjustedScrollOffset.height());
+ FloatPoint scrollPosition = paintInvalidationContainer.layer()
+ ->getScrollableArea()
+ ->scrollPosition();
+ absoluteQuad.move(toScrollOffset(scrollPosition));
}
// Transform node quads in target absolute coords to local coordinates in
« no previous file with comments | « third_party/WebKit/Source/web/FindInPageCoordinates.cpp ('k') | third_party/WebKit/Source/web/ResizeViewportAnchor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698