| Index: Source/core/paint/LayerClipRecorder.cpp
|
| diff --git a/Source/core/paint/LayerClipRecorder.cpp b/Source/core/paint/LayerClipRecorder.cpp
|
| index 2d59a79773c626c7e3636569af983922dc7a2399..5af42ada61654fb480659457be22d4ba468bfae1 100644
|
| --- a/Source/core/paint/LayerClipRecorder.cpp
|
| +++ b/Source/core/paint/LayerClipRecorder.cpp
|
| @@ -30,15 +30,19 @@ LayerClipRecorder::LayerClipRecorder(GraphicsContext& graphicsContext, const Lay
|
| collectRoundedRectClips(*layoutObject.layer(), *localPaintingInfo, graphicsContext, fragmentOffset, paintFlags, rule, *roundedRects);
|
| }
|
|
|
| - OwnPtr<ClipDisplayItem> clipDisplayItem = ClipDisplayItem::create(layoutObject, clipType, snappedClipRect, roundedRects.release());
|
| - if (!RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| - clipDisplayItem->replay(graphicsContext);
|
| - } else {
|
| - ASSERT(m_graphicsContext.displayItemList());
|
| - if (m_graphicsContext.displayItemList()->displayItemConstructionIsDisabled())
|
| - return;
|
| - m_graphicsContext.displayItemList()->add(clipDisplayItem.release());
|
| - }
|
| + ALLOW_UNUSED_LOCAL(m_clipType);
|
| + ALLOW_UNUSED_LOCAL(snappedClipRect);
|
| + ALLOW_UNUSED_LOCAL(m_layoutObject);
|
| + ALLOW_UNUSED_LOCAL(m_graphicsContext);
|
| + //OwnPtr<ClipDisplayItem> clipDisplayItem = ClipDisplayItem::create(layoutObject, clipType, snappedClipRect, roundedRects.release());
|
| + //if (!RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| + // clipDisplayItem->replay(graphicsContext);
|
| + //} else {
|
| + // ASSERT(m_graphicsContext.displayItemList());
|
| + // if (m_graphicsContext.displayItemList()->displayItemConstructionIsDisabled())
|
| + // return;
|
| + // m_graphicsContext.displayItemList()->add(clipDisplayItem.release());
|
| + //}
|
| }
|
|
|
| static bool inContainingBlockChain(DeprecatedPaintLayer* startLayer, DeprecatedPaintLayer* endLayer)
|
| @@ -82,17 +86,17 @@ void LayerClipRecorder::collectRoundedRectClips(DeprecatedPaintLayer& paintLayer
|
|
|
| LayerClipRecorder::~LayerClipRecorder()
|
| {
|
| - if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| - ASSERT(m_graphicsContext.displayItemList());
|
| - if (!m_graphicsContext.displayItemList()->displayItemConstructionIsDisabled()) {
|
| - if (m_graphicsContext.displayItemList()->lastDisplayItemIsNoopBegin())
|
| - m_graphicsContext.displayItemList()->removeLastDisplayItem();
|
| - else
|
| - m_graphicsContext.displayItemList()->add(EndClipDisplayItem::create(m_layoutObject, DisplayItem::clipTypeToEndClipType(m_clipType)));
|
| - }
|
| - } else {
|
| - m_graphicsContext.restore();
|
| - }
|
| + //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| + // ASSERT(m_graphicsContext.displayItemList());
|
| + // if (!m_graphicsContext.displayItemList()->displayItemConstructionIsDisabled()) {
|
| + // if (m_graphicsContext.displayItemList()->lastDisplayItemIsNoopBegin())
|
| + // m_graphicsContext.displayItemList()->removeLastDisplayItem();
|
| + // else
|
| + // m_graphicsContext.displayItemList()->add(EndClipDisplayItem::create(m_layoutObject, DisplayItem::clipTypeToEndClipType(m_clipType)));
|
| + // }
|
| + //} else {
|
| + // m_graphicsContext.restore();
|
| + //}
|
| }
|
|
|
| } // namespace blink
|
|
|