| Index: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| diff --git a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| index 4b1ef4df0d2a50e0abae356538608ad271ee726b..75d4d7e517b86057fdaf7ebb0c673c1bf0723a0f 100644
|
| --- a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| +++ b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| @@ -2130,29 +2130,29 @@ void CompositedDeprecatedPaintLayerMapping::doPaintTask(const GraphicsLayerPaint
|
| // FIXME: Combine similar code here and LayerClipRecorder.
|
| dirtyRect.intersect(paintInfo.localClipRectForSquashedLayer);
|
| {
|
| - if (context->displayItemList()) {
|
| - ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled());
|
| - if (!context->displayItemList()->displayItemConstructionIsDisabled())
|
| - context->displayItemList()->add(ClipDisplayItem::create(*this, DisplayItem::ClipLayerOverflowControls, dirtyRect));
|
| - } else {
|
| - OwnPtr<DisplayItem> clipDisplayItem = ClipDisplayItem::create(*this, DisplayItem::ClipLayerOverflowControls, dirtyRect);
|
| - clipDisplayItem->replay(*context);
|
| - }
|
| + //if (context->displayItemList()) {
|
| + // ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled());
|
| + // if (!context->displayItemList()->displayItemConstructionIsDisabled())
|
| + // context->displayItemList()->add(ClipDisplayItem::create(*this, DisplayItem::ClipLayerOverflowControls, dirtyRect));
|
| + //} else {
|
| + // OwnPtr<DisplayItem> clipDisplayItem = ClipDisplayItem::create(*this, DisplayItem::ClipLayerOverflowControls, dirtyRect);
|
| + // clipDisplayItem->replay(*context);
|
| + //}
|
| }
|
| DeprecatedPaintLayerPainter(*paintInfo.paintLayer).paintLayer(context, paintingInfo, paintLayerFlags);
|
| {
|
| - if (context->displayItemList()) {
|
| - ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled());
|
| - if (!context->displayItemList()->displayItemConstructionIsDisabled()) {
|
| - if (context->displayItemList()->lastDisplayItemIsNoopBegin())
|
| - context->displayItemList()->removeLastDisplayItem();
|
| - else
|
| - context->displayItemList()->add(EndClipDisplayItem::create(*this, DisplayItem::clipTypeToEndClipType(DisplayItem::ClipLayerOverflowControls)));
|
| - }
|
| - } else {
|
| - OwnPtr<DisplayItem> endClipDisplayItem = EndClipDisplayItem::create(*this, DisplayItem::clipTypeToEndClipType(DisplayItem::ClipLayerOverflowControls));
|
| - endClipDisplayItem->replay(*context);
|
| - }
|
| + //if (context->displayItemList()) {
|
| + // ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled());
|
| + // if (!context->displayItemList()->displayItemConstructionIsDisabled()) {
|
| + // if (context->displayItemList()->lastDisplayItemIsNoopBegin())
|
| + // context->displayItemList()->removeLastDisplayItem();
|
| + // else
|
| + // context->displayItemList()->add(EndClipDisplayItem::create(*this, DisplayItem::clipTypeToEndClipType(DisplayItem::ClipLayerOverflowControls)));
|
| + // }
|
| + //} else {
|
| + // OwnPtr<DisplayItem> endClipDisplayItem = EndClipDisplayItem::create(*this, DisplayItem::clipTypeToEndClipType(DisplayItem::ClipLayerOverflowControls));
|
| + // endClipDisplayItem->replay(*context);
|
| + //}
|
| }
|
| }
|
| }
|
|
|