Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
index 5f0e1c09483469573970f453e321b5aaa6cf92fb..5e5928b475b0bdb199ffa9c9f8daa80ec82f3e92 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
@@ -1237,7 +1237,11 @@ void CompositedLayerMapping::updateDrawsContent() |
// m_scrollingContentsLayer only needs backing store if the scrolled contents need to paint. |
m_scrollingContentsAreEmpty = !m_owningLayer.hasVisibleContent() || !(layoutObject()->hasBackground() || paintsChildren()); |
m_scrollingContentsLayer->setDrawsContent(!m_scrollingContentsAreEmpty); |
+ m_graphicsLayer->setCanUseClientCacheStatus(false); |
+ m_scrollingContentsLayer->setCanUseClientCacheStatus(true); |
updateScrollingBlockSelection(); |
+ } else { |
+ m_graphicsLayer->setCanUseClientCacheStatus(true); |
} |
if (hasPaintedContent && isAcceleratedCanvas(layoutObject())) { |