Index: third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp |
diff --git a/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp b/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp |
index 4f2c16d8db14990328fa04fd28dc44dfda081ac8..3c24bdec0dd4bcd70de4315b3b468d5a75154c2d 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp |
@@ -97,30 +97,10 @@ void GraphicsLayerTreeBuilder::rebuild(PaintLayer& layer, AncestorInfo info) |
if (hasCompositedLayerMapping) { |
bool parented = false; |
if (layer.layoutObject()->isLayoutPart()) |
- parented = PaintLayerCompositor::parentFrameContentLayers(toLayoutPart(layer.layoutObject())); |
+ parented = PaintLayerCompositor::attachFrameContentLayersToIframeLayer(toLayoutPart(layer.layoutObject())); |
if (!parented) |
- currentCompositedLayerMapping->parentForSublayers()->setChildren(layerChildren); |
- |
- // If the layer has a clipping layer the overflow controls layers will be siblings of the clipping layer. |
- // Otherwise, the overflow control layers are normal children. |
- // FIXME: Why isn't this handled in CLM updateInternalHierarchy? |
- if (!currentCompositedLayerMapping->hasClippingLayer() && !currentCompositedLayerMapping->hasScrollingLayer()) { |
- if (GraphicsLayer* overflowControlLayer = currentCompositedLayerMapping->layerForHorizontalScrollbar()) { |
- overflowControlLayer->removeFromParent(); |
- currentCompositedLayerMapping->parentForSublayers()->addChild(overflowControlLayer); |
- } |
- |
- if (GraphicsLayer* overflowControlLayer = currentCompositedLayerMapping->layerForVerticalScrollbar()) { |
- overflowControlLayer->removeFromParent(); |
- currentCompositedLayerMapping->parentForSublayers()->addChild(overflowControlLayer); |
- } |
- |
- if (GraphicsLayer* overflowControlLayer = currentCompositedLayerMapping->layerForScrollCorner()) { |
- overflowControlLayer->removeFromParent(); |
- currentCompositedLayerMapping->parentForSublayers()->addChild(overflowControlLayer); |
- } |
- } |
+ currentCompositedLayerMapping->setSublayers(layerChildren); |
if (shouldAppendLayer(layer)) |
info.childLayersOfEnclosingCompositedLayer->append(currentCompositedLayerMapping->childForSuperlayers()); |