Chromium Code Reviews| 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..c4cc864a78511a741494e7158a8036b5dd124ed9 100644 |
| --- a/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp |
| +++ b/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp |
| @@ -100,27 +100,7 @@ void GraphicsLayerTreeBuilder::rebuild(PaintLayer& layer, AncestorInfo info) |
| parented = PaintLayerCompositor::parentFrameContentLayers(toLayoutPart(layer.layoutObject())); |
|
chrishtr
2015/11/20 01:20:42
So you figured out what this function does? Could
skobes
2015/11/20 01:35:21
Done.
(It's less confusing when you realize "pare
|
| 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); |
|
chrishtr
2015/11/20 01:20:42
How does this restore the various graphics layers
skobes
2015/11/20 01:35:21
They aren't in layerChildren. The relevant code i
|
| if (shouldAppendLayer(layer)) |
| info.childLayersOfEnclosingCompositedLayer->append(currentCompositedLayerMapping->childForSuperlayers()); |