| Index: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| index 722429f927b64a6491d954370070aa5f0a9a8e21..a1c19199c23552dd63227e7b21bc668b45b1ace9 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
|
| @@ -671,23 +671,25 @@ bool PaintLayerCompositor::attachFrameContentLayersToIframeLayer(LayoutPart* lay
|
| return true;
|
| }
|
|
|
| -static void fullyInvalidatePaintRecursive(PaintLayer* layer)
|
| +static void fullyInvalidatePaintRecursive(PaintLayer* layer, bool changeDirectlyCompositedImages)
|
| {
|
| if (layer->compositingState() == PaintsIntoOwnBacking) {
|
| layer->compositedLayerMapping()->setContentsNeedDisplay();
|
| layer->compositedLayerMapping()->setSquashingContentsNeedDisplay();
|
| + if (changeDirectlyCompositedImages)
|
| + layer->compositedLayerMapping()->contentChanged(ImageChanged);
|
| }
|
|
|
| for (PaintLayer* child = layer->firstChild(); child; child = child->nextSibling())
|
| - fullyInvalidatePaintRecursive(child);
|
| + fullyInvalidatePaintRecursive(child, changeDirectlyCompositedImages);
|
| }
|
|
|
| -void PaintLayerCompositor::fullyInvalidatePaint()
|
| +void PaintLayerCompositor::fullyInvalidatePaint(bool changeDirectlyCompositedImages)
|
| {
|
| // We're walking all compositing layers and invalidating them, so there's
|
| // no need to have up-to-date compositing state.
|
| DisableCompositingQueryAsserts disabler;
|
| - fullyInvalidatePaintRecursive(rootLayer());
|
| + fullyInvalidatePaintRecursive(rootLayer(), changeDirectlyCompositedImages);
|
| }
|
|
|
| PaintLayer* PaintLayerCompositor::rootLayer() const
|
|
|