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

Unified Diff: third_party/WebKit/Source/core/paint/BoxPaintInvalidator.h

Issue 2498823002: Paint invalidation of local attachment backgrounds (Closed)
Patch Set: - Created 4 years, 1 month 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/paint/BoxPaintInvalidator.h
diff --git a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.h b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.h
index 872821e9ff64cf68a5a8449d3516379bdb516461..76e2b8ec581220d71f25ebff98182fce2d4e14f8 100644
--- a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.h
+++ b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.h
@@ -28,13 +28,22 @@ class BoxPaintInvalidator {
PaintInvalidationReason invalidatePaintIfNeeded();
private:
+ bool backgroundGeometryDependsOnLayoutOverflowRect();
+ bool backgroundPaintsOntoScrollingContentsLayer();
+ bool shouldFullyInvalidateBackgroundOnLayoutOverflowChange(
+ const LayoutRect& oldLayoutOverflow,
+ const LayoutRect& newLayoutOverflow);
+ void invalidateScrollingContentsBackgroundIfNeeded();
+
PaintInvalidationReason computePaintInvalidationReason();
- bool incrementallyInvalidatePaint();
+ bool incrementallyInvalidatePaint(PaintInvalidationReason,
+ const LayoutRect& oldRect,
+ const LayoutRect& newRect);
bool needsToSavePreviousBoxGeometries();
void savePreviousBoxGeometriesIfNeeded();
- LayoutSize previousBorderBoxSize(const LayoutSize& previousVisualRectSize);
+ LayoutSize previousBorderBoxSize();
LayoutRect previousContentBoxRect();
LayoutRect previousLayoutOverflowRect();

Powered by Google App Engine
This is Rietveld 408576698