| Index: Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| diff --git a/Source/platform/graphics/paint/ClipPathRecorder.cpp b/Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| index 0107ddcafe430d52f6779e03bfe43ded5c14d45e..ba2573d543c76f5b11ddfae1c10f800f45d1c14b 100644
|
| --- a/Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| +++ b/Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| @@ -16,31 +16,33 @@ ClipPathRecorder::ClipPathRecorder(GraphicsContext& context, const DisplayItemCl
|
| : m_context(context)
|
| , m_client(client)
|
| {
|
| - if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| - ASSERT(m_context.displayItemList());
|
| - if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| - return;
|
| - m_context.displayItemList()->add(BeginClipPathDisplayItem::create(m_client, clipPath));
|
| - } else {
|
| - BeginClipPathDisplayItem clipPathDisplayItem(m_client, clipPath);
|
| - clipPathDisplayItem.replay(m_context);
|
| - }
|
| + ALLOW_UNUSED_LOCAL(m_context);
|
| + ALLOW_UNUSED_LOCAL(m_client);
|
| + //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| + // ASSERT(m_context.displayItemList());
|
| + // if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| + // return;
|
| + // m_context.displayItemList()->add(BeginClipPathDisplayItem::create(m_client, clipPath));
|
| + //} else {
|
| + // BeginClipPathDisplayItem clipPathDisplayItem(m_client, clipPath);
|
| + // clipPathDisplayItem.replay(m_context);
|
| + //}
|
| }
|
|
|
| ClipPathRecorder::~ClipPathRecorder()
|
| {
|
| - 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(EndClipPathDisplayItem::create(m_client));
|
| - }
|
| - } else {
|
| - EndClipPathDisplayItem endClipPathDisplayItem(m_client);
|
| - endClipPathDisplayItem.replay(m_context);
|
| - }
|
| + //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(EndClipPathDisplayItem::create(m_client));
|
| + // }
|
| + //} else {
|
| + // EndClipPathDisplayItem endClipPathDisplayItem(m_client);
|
| + // endClipPathDisplayItem.replay(m_context);
|
| + //}
|
| }
|
|
|
| } // namespace blink
|
|
|