Index: Source/platform/graphics/paint/DrawingRecorder.cpp |
diff --git a/Source/platform/graphics/paint/DrawingRecorder.cpp b/Source/platform/graphics/paint/DrawingRecorder.cpp |
index c697e0b531344892b760bb0fd1407bbd410f18af..f4288f6ebed779388ebfe45e99d8b76ce46d1a12 100644 |
--- a/Source/platform/graphics/paint/DrawingRecorder.cpp |
+++ b/Source/platform/graphics/paint/DrawingRecorder.cpp |
@@ -91,16 +91,15 @@ DrawingRecorder::~DrawingRecorder() |
m_displayItemClient.debugName().utf8().data()); |
} |
#endif |
- m_context.displayItemList()->add(CachedDisplayItem::create(m_displayItemClient, DisplayItem::drawingTypeToCachedType(m_displayItemType))); |
+ m_context.displayItemList()->createAndAppend<CachedDisplayItem>(m_displayItemClient, DisplayItem::drawingTypeToCachedType(m_displayItemType)); |
} else { |
- OwnPtr<DrawingDisplayItem> drawingDisplayItem = DrawingDisplayItem::create(m_displayItemClient |
+ m_context.displayItemList()->createAndAppend<DrawingDisplayItem>(m_displayItemClient |
, m_displayItemType |
, m_context.endRecording() |
#if ENABLE(ASSERT) |
, m_underInvalidationCheckingMode |
#endif |
); |
- m_context.displayItemList()->add(drawingDisplayItem.release()); |
} |
} |