Index: Source/core/rendering/RenderLayer.cpp |
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
index 820535bab6ef49aac21abc5b3baf36b0dc17e717..fa9730c9fe7fe0fc99459763b87c8ab4068e40db 100644 |
--- a/Source/core/rendering/RenderLayer.cpp |
+++ b/Source/core/rendering/RenderLayer.cpp |
@@ -2668,11 +2668,6 @@ RenderLayer* RenderLayer::hitTestLayer(RenderLayer* rootLayer, RenderLayer* cont |
// Our layers can depth-test with our container, so share the z depth pointer with the container, if it passed one down. |
zOffsetForDescendantsPtr = zOffset ? zOffset : &localZOffset; |
zOffsetForContentsPtr = zOffset ? zOffset : &localZOffset; |
- } else if (m_has3DTransformedDescendant) { |
- // Flattening layer with 3d children; use a local zOffset pointer to depth-test children and foreground. |
- depthSortDescendants = true; |
- zOffsetForDescendantsPtr = zOffset ? zOffset : &localZOffset; |
- zOffsetForContentsPtr = zOffset ? zOffset : &localZOffset; |
} else if (zOffset) { |
zOffsetForDescendantsPtr = 0; |
// Container needs us to give back a z offset for the hit layer. |