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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h

Issue 2266103002: Repaint when background switches painting from/to scrolling contents layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master. Created 4 years, 4 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/CompositedLayerMapping.h
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
index bd7baaed155b2d2f464dc65f7a080baf4aa48cbb..6afcfbc014411007dc9d79d12102f1aae8dcc39f 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
@@ -87,6 +87,9 @@ public:
bool updateGraphicsLayerConfiguration();
void updateGraphicsLayerGeometry(const PaintLayer* compositingContainer, const PaintLayer* compositingStackingContext, Vector<PaintLayer*>& layersNeedingPaintInvalidation);
+ // Update whether background paints onto scrolling contents layer.
+ void updateBackgroundPaintingLayer();
+
// Update whether layer needs blending.
void updateContentsOpaque();
@@ -223,6 +226,7 @@ public:
// opaque this allows us to composite the scroller even on low DPI as we can
// draw with subpixel anti-aliasing.
bool shouldPaintBackgroundOntoScrollingContentsLayer() const;
+ bool backgroundPaintsOntoScrollingContentsLayer() { return m_backgroundPaintsOntoScrollingContentsLayer; }
private:
IntRect recomputeInterestRect(const GraphicsLayer*) const;
@@ -461,6 +465,9 @@ private:
unsigned m_backgroundLayerPaintsFixedRootBackground : 1;
unsigned m_scrollingContentsAreEmpty : 1;
+ // Keep track of whether the background is painted onto the scrolling contents layer for invalidations.
+ unsigned m_backgroundPaintsOntoScrollingContentsLayer : 1;
+
friend class CompositedLayerMappingTest;
};

Powered by Google App Engine
This is Rietveld 408576698