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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp

Issue 2411193002: Account for non-composited scroll offset of scrollbars. (Closed)
Patch Set: none 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
« no previous file with comments | « third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-yet-scrolled-with-custom-scrollbar-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp
index 56e49df56e4d84f92c83f66154d6d26d329950f2..4e5e28a73e807cc50050c701794568bbab29ef86 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp
@@ -38,8 +38,13 @@ static LayoutRect scrollControlPaintInvalidationRect(
// transform space than their contained box (the scrollbarPaintOffset
// transform node).
if (!paintInvalidationRect.isEmpty() &&
- !RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ !RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
context.mapLocalRectToPaintInvalidationBacking(box, paintInvalidationRect);
+
+ IntSize adjustment = box.scrollAdjustmentForPaintInvalidation(
+ *context.paintInvalidationContainer);
+ paintInvalidationRect.move(adjustment);
+ }
return paintInvalidationRect;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-yet-scrolled-with-custom-scrollbar-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698