| Index: Source/core/paint/ScrollRecorder.cpp
|
| diff --git a/Source/core/paint/ScrollRecorder.cpp b/Source/core/paint/ScrollRecorder.cpp
|
| index cdcf9d7f2f17153d57375149e180c5ecf4554191..a2b18ae1a7d13e6679d5c8456138ca7be87d935f 100644
|
| --- a/Source/core/paint/ScrollRecorder.cpp
|
| +++ b/Source/core/paint/ScrollRecorder.cpp
|
| @@ -17,32 +17,35 @@ ScrollRecorder::ScrollRecorder(GraphicsContext& context, const DisplayItemClient
|
| , m_beginItemType(DisplayItem::paintPhaseToScrollType(phase))
|
| , m_context(context)
|
| {
|
| - if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| - ASSERT(m_context.displayItemList());
|
| - if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| - return;
|
| - m_context.displayItemList()->add(BeginScrollDisplayItem::create(m_client, m_beginItemType, currentOffset));
|
| - } else {
|
| - BeginScrollDisplayItem scrollDisplayItem(m_client, m_beginItemType, currentOffset);
|
| - scrollDisplayItem.replay(m_context);
|
| - }
|
| + ALLOW_UNUSED_LOCAL(m_client);
|
| + ALLOW_UNUSED_LOCAL(m_beginItemType);
|
| + ALLOW_UNUSED_LOCAL(m_context);
|
| + //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| + // ASSERT(m_context.displayItemList());
|
| + // if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| + // return;
|
| + // m_context.displayItemList()->add(BeginScrollDisplayItem::create(m_client, m_beginItemType, currentOffset));
|
| + //} else {
|
| + // BeginScrollDisplayItem scrollDisplayItem(m_client, m_beginItemType, currentOffset);
|
| + // scrollDisplayItem.replay(m_context);
|
| + //}
|
| }
|
|
|
| ScrollRecorder::~ScrollRecorder()
|
| {
|
| - DisplayItem::Type endItemType = DisplayItem::scrollTypeToEndScrollType(m_beginItemType);
|
| - 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(EndScrollDisplayItem::create(m_client, endItemType));
|
| - }
|
| - } else {
|
| - EndScrollDisplayItem endScrollDisplayItem(m_client, endItemType);
|
| - endScrollDisplayItem.replay(m_context);
|
| - }
|
| + //DisplayItem::Type endItemType = DisplayItem::scrollTypeToEndScrollType(m_beginItemType);
|
| + //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(EndScrollDisplayItem::create(m_client, endItemType));
|
| + // }
|
| + //} else {
|
| + // EndScrollDisplayItem endScrollDisplayItem(m_client, endItemType);
|
| + // endScrollDisplayItem.replay(m_context);
|
| + //}
|
| }
|
|
|
| } // namespace blink
|
|
|