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 5e552c2b831d41bcbec65d4804ad153d25362798..da3c47056d82795de41e10be38b9c866c35d6033 100644 |
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp |
@@ -415,6 +415,8 @@ int PropertyTreeManager::compositorIdForTransformNode(const TransformPaintProper |
compositorNode.post_local.matrix().setTranslate( |
origin.x(), origin.y(), origin.z()); |
compositorNode.needs_local_transform_update = true; |
+ compositorNode.flattens_inherited_transform = transformNode->flattensInheritedTransform(); |
+ compositorNode.sorting_context_id = transformNode->renderingContextID(); |
m_rootLayer->AddChild(dummyLayer); |
dummyLayer->SetTransformTreeIndex(id); |
@@ -585,6 +587,10 @@ void PaintArtifactCompositor::updateInLayerListMode(const PaintArtifact& paintAr |
layer->SetEffectTreeIndex(effectId); |
layer->SetScrollTreeIndex(kRealRootNodeId); |
+ // TODO(jbroman): This probably shouldn't be necessary, but it is still |
+ // queried by RenderSurfaceImpl. |
+ layer->Set3dSortingContextId(host->property_trees()->transform_tree.Node(transformId)->sorting_context_id); |
+ |
if (m_extraDataForTestingEnabled) |
m_extraDataForTesting->contentLayers.append(layer); |
} |