| Index: Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| diff --git a/Source/platform/graphics/paint/ClipPathRecorder.cpp b/Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| index 65ac303a8992c0e21587aa8fee50bbfcdef1f0c5..25fa2878a3a796a79f6459200feea2cbcb86d9b3 100644
|
| --- a/Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| +++ b/Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| @@ -20,7 +20,7 @@ ClipPathRecorder::ClipPathRecorder(GraphicsContext& context, const DisplayItemCl
|
| ASSERT(m_context.displayItemList());
|
| if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| return;
|
| - m_context.displayItemList()->add(BeginClipPathDisplayItem::create(m_client, clipPath));
|
| + m_context.displayItemList()->createAndAppendIfNeeded<BeginClipPathDisplayItem>(m_client, clipPath);
|
| } else {
|
| BeginClipPathDisplayItem clipPathDisplayItem(m_client, clipPath);
|
| clipPathDisplayItem.replay(m_context);
|
| @@ -33,7 +33,7 @@ ClipPathRecorder::~ClipPathRecorder()
|
| ASSERT(m_context.displayItemList());
|
| if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| return;
|
| - m_context.displayItemList()->add(EndClipPathDisplayItem::create(m_client));
|
| + m_context.displayItemList()->createAndAppendIfNeeded<EndClipPathDisplayItem>(m_client);
|
| } else {
|
| EndClipPathDisplayItem endClipPathDisplayItem(m_client);
|
| endClipPathDisplayItem.replay(m_context);
|
|
|