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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: tweaks and docs 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 5ca7a75f74bf11b883c21bc9396d00fce2436396..10a4472cb86614893b5561f17f55ef104703438f 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -639,7 +639,7 @@ enum AcceleratedFixedRootBackgroundHistogramBuckets {
void PaintLayerCompositor::frameViewDidScroll() {
FrameView* frameView = m_layoutView.frameView();
- IntPoint scrollPosition = frameView->scrollPosition();
+ IntSize scrollOffset = frameView->scrollOffsetInt();
if (!m_scrollLayer)
return;
@@ -657,7 +657,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