| Index: Source/core/paint/FloatClipRecorder.cpp
|
| diff --git a/Source/core/paint/FloatClipRecorder.cpp b/Source/core/paint/FloatClipRecorder.cpp
|
| index afb14eaed42c5e9b2a5117535664de57a8be280c..d3131dbcea781c6e106b3dccdff75f20ee68167c 100644
|
| --- a/Source/core/paint/FloatClipRecorder.cpp
|
| +++ b/Source/core/paint/FloatClipRecorder.cpp
|
| @@ -17,32 +17,35 @@ FloatClipRecorder::FloatClipRecorder(GraphicsContext& context, const DisplayItem
|
| , m_client(client)
|
| , m_clipType(DisplayItem::paintPhaseToFloatClipType(paintPhase))
|
| {
|
| - if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| - ASSERT(m_context.displayItemList());
|
| - if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| - return;
|
| - m_context.displayItemList()->add(FloatClipDisplayItem::create(m_client, m_clipType, clipRect));
|
| - } else {
|
| - FloatClipDisplayItem clipDisplayItem(m_client, m_clipType, clipRect);
|
| - clipDisplayItem.replay(m_context);
|
| - }
|
| + ALLOW_UNUSED_LOCAL(m_context);
|
| + ALLOW_UNUSED_LOCAL(m_client);
|
| + ALLOW_UNUSED_LOCAL(m_clipType);
|
| + //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| + // ASSERT(m_context.displayItemList());
|
| + // if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| + // return;
|
| + // m_context.displayItemList()->add(FloatClipDisplayItem::create(m_client, m_clipType, clipRect));
|
| + //} else {
|
| + // FloatClipDisplayItem clipDisplayItem(m_client, m_clipType, clipRect);
|
| + // clipDisplayItem.replay(m_context);
|
| + //}
|
| }
|
|
|
| FloatClipRecorder::~FloatClipRecorder()
|
| {
|
| - DisplayItem::Type endType = DisplayItem::floatClipTypeToEndFloatClipType(m_clipType);
|
| - if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| - ASSERT(m_context.displayItemList());
|
| - if (!m_context.displayItemList()->displayItemConstructionIsDisabled()) {
|
| - if (m_context.displayItemList()->lastDisplayItemIsNoopBegin())
|
| - m_context.displayItemList()->removeLastDisplayItem();
|
| - else
|
| - m_context.displayItemList()->add(EndFloatClipDisplayItem::create(m_client, endType));
|
| - }
|
| - } else {
|
| - EndFloatClipDisplayItem endClipDisplayItem(m_client, endType);
|
| - endClipDisplayItem.replay(m_context);
|
| - }
|
| + //DisplayItem::Type endType = DisplayItem::floatClipTypeToEndFloatClipType(m_clipType);
|
| + //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| + // ASSERT(m_context.displayItemList());
|
| + // if (!m_context.displayItemList()->displayItemConstructionIsDisabled()) {
|
| + // if (m_context.displayItemList()->lastDisplayItemIsNoopBegin())
|
| + // m_context.displayItemList()->removeLastDisplayItem();
|
| + // else
|
| + // m_context.displayItemList()->add(EndFloatClipDisplayItem::create(m_client, endType));
|
| + // }
|
| + //} else {
|
| + // EndFloatClipDisplayItem endClipDisplayItem(m_client, endType);
|
| + // endClipDisplayItem.replay(m_context);
|
| + //}
|
| }
|
|
|
| } // namespace blink
|
|
|