| Index: Source/core/paint/RoundedInnerRectClipper.cpp
|
| diff --git a/Source/core/paint/RoundedInnerRectClipper.cpp b/Source/core/paint/RoundedInnerRectClipper.cpp
|
| index 3e0bfa03243402bd49ec8c221604a09af9ad0dda..ded720005e815bb2b92ccbc841b769b1c88cd558 100644
|
| --- a/Source/core/paint/RoundedInnerRectClipper.cpp
|
| +++ b/Source/core/paint/RoundedInnerRectClipper.cpp
|
| @@ -48,32 +48,33 @@ RoundedInnerRectClipper::RoundedInnerRectClipper(LayoutObject& layoutObject, con
|
| }
|
| }
|
|
|
| - OwnPtr<ClipDisplayItem> clipDisplayItem = ClipDisplayItem::create(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips.release());
|
| - if (m_useDisplayItemList) {
|
| - ASSERT(m_paintInfo.context->displayItemList());
|
| - if (m_paintInfo.context->displayItemList()->displayItemConstructionIsDisabled())
|
| - return;
|
| - m_paintInfo.context->displayItemList()->add(clipDisplayItem.release());
|
| - } else {
|
| - clipDisplayItem->replay(*paintInfo.context);
|
| - }
|
| + ALLOW_UNUSED_LOCAL(m_layoutObject);
|
| + //OwnPtr<ClipDisplayItem> clipDisplayItem = ClipDisplayItem::create(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips.release());
|
| + //if (m_useDisplayItemList) {
|
| + // ASSERT(m_paintInfo.context->displayItemList());
|
| + // if (m_paintInfo.context->displayItemList()->displayItemConstructionIsDisabled())
|
| + // return;
|
| + // m_paintInfo.context->displayItemList()->add(clipDisplayItem.release());
|
| + //} else {
|
| + // clipDisplayItem->replay(*paintInfo.context);
|
| + //}
|
| }
|
|
|
| RoundedInnerRectClipper::~RoundedInnerRectClipper()
|
| {
|
| - DisplayItem::Type endType = DisplayItem::clipTypeToEndClipType(m_clipType);
|
| - if (m_useDisplayItemList) {
|
| - ASSERT(m_paintInfo.context->displayItemList());
|
| - if (!m_paintInfo.context->displayItemList()->displayItemConstructionIsDisabled()) {
|
| - if (m_paintInfo.context->displayItemList()->lastDisplayItemIsNoopBegin())
|
| - m_paintInfo.context->displayItemList()->removeLastDisplayItem();
|
| - else
|
| - m_paintInfo.context->displayItemList()->add(EndClipDisplayItem::create(m_layoutObject, endType));
|
| - }
|
| - } else {
|
| - EndClipDisplayItem endClipDisplayItem(m_layoutObject, endType);
|
| - endClipDisplayItem.replay(*m_paintInfo.context);
|
| - }
|
| + //DisplayItem::Type endType = DisplayItem::clipTypeToEndClipType(m_clipType);
|
| + //if (m_useDisplayItemList) {
|
| + // ASSERT(m_paintInfo.context->displayItemList());
|
| + // if (!m_paintInfo.context->displayItemList()->displayItemConstructionIsDisabled()) {
|
| + // if (m_paintInfo.context->displayItemList()->lastDisplayItemIsNoopBegin())
|
| + // m_paintInfo.context->displayItemList()->removeLastDisplayItem();
|
| + // else
|
| + // m_paintInfo.context->displayItemList()->add(EndClipDisplayItem::create(m_layoutObject, endType));
|
| + // }
|
| + //} else {
|
| + // EndClipDisplayItem endClipDisplayItem(m_layoutObject, endType);
|
| + // endClipDisplayItem.replay(*m_paintInfo.context);
|
| + //}
|
| }
|
|
|
| } // namespace blink
|
|
|