| Index: sky/engine/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp
|
| diff --git a/sky/engine/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp b/sky/engine/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp
|
| index 8055be8e16dd8babcf8bdbdc00782e370f53ba2c..498ed9a17c1844ab2b7b63b373a04ba29ae3ba2d 100644
|
| --- a/sky/engine/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp
|
| +++ b/sky/engine/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp
|
| @@ -83,21 +83,6 @@ void GraphicsLayerTreeBuilder::rebuild(RenderLayer& layer, AncestorInfo info)
|
| if (hasCompositedLayerMapping) {
|
| 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);
|
| - }
|
| - }
|
| -
|
| info.childLayersOfEnclosingCompositedLayer->append(currentCompositedLayerMapping->childForSuperlayers());
|
| }
|
|
|
|
|