Index: Source/core/paint/RoundedInnerRectClipper.cpp |
diff --git a/Source/core/paint/RoundedInnerRectClipper.cpp b/Source/core/paint/RoundedInnerRectClipper.cpp |
index 3e0bfa03243402bd49ec8c221604a09af9ad0dda..79c27a63d3ffc2e483d1bba3ff2b6ccccc185efa 100644 |
--- a/Source/core/paint/RoundedInnerRectClipper.cpp |
+++ b/Source/core/paint/RoundedInnerRectClipper.cpp |
@@ -48,14 +48,14 @@ 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()); |
+ m_paintInfo.context->displayItemList()->createAndAppend<ClipDisplayItem>(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips.release()); |
} else { |
- clipDisplayItem->replay(*paintInfo.context); |
+ ClipDisplayItem clipDisplayItem(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips.release()); |
+ clipDisplayItem.replay(*paintInfo.context); |
} |
} |
@@ -68,7 +68,7 @@ RoundedInnerRectClipper::~RoundedInnerRectClipper() |
if (m_paintInfo.context->displayItemList()->lastDisplayItemIsNoopBegin()) |
m_paintInfo.context->displayItemList()->removeLastDisplayItem(); |
else |
- m_paintInfo.context->displayItemList()->add(EndClipDisplayItem::create(m_layoutObject, endType)); |
+ m_paintInfo.context->displayItemList()->createAndAppend<EndClipDisplayItem>(m_layoutObject, endType); |
} |
} else { |
EndClipDisplayItem endClipDisplayItem(m_layoutObject, endType); |