[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebCore / rendering / svg / SVGTextMetricsBuilder.cpp
index 3241025..810a0b8 100644 (file)
@@ -103,7 +103,7 @@ void SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer(RenderSVGInlin
     if (m_isComplexText)
         m_simpleWidthIterator = nullptr;
     else
-        m_simpleWidthIterator = std::make_unique<WidthIterator>(&scaledFont, m_run);
+        m_simpleWidthIterator = makeUnique<WidthIterator>(&scaledFont, m_run);
 }
 
 struct MeasureTextData {