| Index: Source/core/paint/FloatClipRecorder.cpp
|
| diff --git a/Source/core/paint/FloatClipRecorder.cpp b/Source/core/paint/FloatClipRecorder.cpp
|
| index 8797c065c2010645b3bf154ea8cc24d13bdd432e..9293e64d77a3d170a4833f493e88eef420d3683a 100644
|
| --- a/Source/core/paint/FloatClipRecorder.cpp
|
| +++ b/Source/core/paint/FloatClipRecorder.cpp
|
| @@ -21,7 +21,7 @@ FloatClipRecorder::FloatClipRecorder(GraphicsContext& context, const DisplayItem
|
| ASSERT(m_context.displayItemList());
|
| if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| return;
|
| - m_context.displayItemList()->add(FloatClipDisplayItem::create(m_client, m_clipType, clipRect));
|
| + m_context.displayItemList()->createAndAppendIfNeeded<FloatClipDisplayItem>(m_client, m_clipType, clipRect);
|
| } else {
|
| FloatClipDisplayItem clipDisplayItem(m_client, m_clipType, clipRect);
|
| clipDisplayItem.replay(m_context);
|
| @@ -35,7 +35,7 @@ FloatClipRecorder::~FloatClipRecorder()
|
| ASSERT(m_context.displayItemList());
|
| if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| return;
|
| - m_context.displayItemList()->add(EndFloatClipDisplayItem::create(m_client, endType));
|
| + m_context.displayItemList()->createAndAppendIfNeeded<EndFloatClipDisplayItem>(m_client, endType);
|
| } else {
|
| EndFloatClipDisplayItem endClipDisplayItem(m_client, endType);
|
| endClipDisplayItem.replay(m_context);
|
|
|