| Index: Source/core/paint/TransformRecorder.cpp
|
| diff --git a/Source/core/paint/TransformRecorder.cpp b/Source/core/paint/TransformRecorder.cpp
|
| index fb96a941228b0fbed9bb6c0919fb17b6c7d08ed9..62b963529f0044b3a81ce0ff9f090c431c39ed1a 100644
|
| --- a/Source/core/paint/TransformRecorder.cpp
|
| +++ b/Source/core/paint/TransformRecorder.cpp
|
| @@ -25,7 +25,7 @@ TransformRecorder::TransformRecorder(GraphicsContext& context, const DisplayItem
|
| ASSERT(m_context.displayItemList());
|
| if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| return;
|
| - m_context.displayItemList()->add(BeginTransformDisplayItem::create(m_client, transform));
|
| + m_context.displayItemList()->createAndAppendIfNeeded<BeginTransformDisplayItem>(m_client, transform);
|
| } else {
|
| BeginTransformDisplayItem beginTransform(m_client, transform);
|
| beginTransform.replay(m_context);
|
| @@ -41,7 +41,7 @@ TransformRecorder::~TransformRecorder()
|
| ASSERT(m_context.displayItemList());
|
| if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| return;
|
| - m_context.displayItemList()->add(EndTransformDisplayItem::create(m_client));
|
| + m_context.displayItemList()->createAndAppendIfNeeded<EndTransformDisplayItem>(m_client);
|
| } else {
|
| EndTransformDisplayItem endTransform(m_client);
|
| endTransform.replay(m_context);
|
|
|