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

Unified Diff: third_party/WebKit/Source/core/layout/PaintInvalidationState.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/PaintInvalidationState.cpp
diff --git a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
index 68cdd9c97e51f0c8a14fe239d12a635b5d870021..e0830d1db4773a05e1f77c26c237425d53387bd9 100644
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
@@ -348,7 +348,8 @@ void PaintInvalidationState::updateForNormalChildren() {
if (box.isLayoutView()) {
if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled()) {
if (box != m_paintInvalidationContainer) {
- m_paintOffset -= toLayoutView(box).frameView()->scrollOffset();
+ m_paintOffset -=
+ LayoutSize(toLayoutView(box).frameView()->scrollOffset());
addClipRectRelativeToPaintOffset(toLayoutView(box).viewRect());
}
return;
« no previous file with comments | « third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp ('k') | third_party/WebKit/Source/core/layout/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698