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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.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/compositing/PaintLayerCompositor.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
index dbfde763873517b83fb35a6378974d86b7de0588..ac8cf0379045d6489572d69262cc34cc9f67eb45 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -656,7 +656,7 @@ enum AcceleratedFixedRootBackgroundHistogramBuckets {
void PaintLayerCompositor::frameViewDidScroll() {
FrameView* frameView = m_layoutView.frameView();
- IntPoint scrollPosition = frameView->scrollPosition();
+ IntSize scrollOffset = frameView->scrollOffsetInt();
if (!m_scrollLayer)
return;
@@ -674,7 +674,7 @@ void PaintLayerCompositor::frameViewDidScroll() {
if (scrollingCoordinatorHandlesOffset)
m_scrollLayer->setPosition(frameView->scrollOrigin());
else
- m_scrollLayer->setPosition(-scrollPosition);
+ m_scrollLayer->setPosition(IntPoint(-scrollOffset));
DEFINE_STATIC_LOCAL(EnumerationHistogram, acceleratedBackgroundHistogram,
("Renderer.AcceleratedFixedRootBackground",

Powered by Google App Engine
This is Rietveld 408576698