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; |
}; |