| Index: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
|
| index b0358223377b6e01b16a659c4613618ac190492d..808334731e7d94e622661b774d428e1cedc4c56a 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
|
| @@ -589,7 +589,8 @@ void PaintArtifactCompositor::collectPendingLayers(
|
| void PaintArtifactCompositor::update(
|
| const PaintArtifact& paintArtifact,
|
| RasterInvalidationTrackingMap<const PaintChunk>* rasterChunkInvalidations,
|
| - bool storeDebugInfo) {
|
| + bool storeDebugInfo,
|
| + CompositorElementIdSet& compositedElementIds) {
|
| #ifndef NDEBUG
|
| storeDebugInfo = true;
|
| #endif
|
| @@ -634,7 +635,12 @@ void PaintArtifactCompositor::update(
|
| *pendingLayer.propertyTreeState.effect());
|
|
|
| layer->set_offset_to_transform_parent(layerOffset);
|
| - layer->SetElementId(pendingLayer.propertyTreeState.compositorElementId());
|
| + CompositorElementId elementId =
|
| + pendingLayer.propertyTreeState.compositorElementId();
|
| + if (elementId) {
|
| + layer->SetElementId(elementId);
|
| + compositedElementIds.insert(elementId);
|
| + }
|
|
|
| m_rootLayer->AddChild(layer);
|
| layer->set_property_tree_sequence_number(sPropertyTreeSequenceNumber);
|
|
|