[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebKit / WebProcess / WebCoreSupport / WebInspectorClient.cpp
index 7cdaacd..d67b62c 100644 (file)
@@ -151,7 +151,7 @@ void WebInspectorClient::showPaintRect(const FloatRect& rect)
     }
 
     if (!m_paintIndicatorLayerClient)
-        m_paintIndicatorLayerClient = std::make_unique<RepaintIndicatorLayerClient>(*this);
+        m_paintIndicatorLayerClient = makeUnique<RepaintIndicatorLayerClient>(*this);
 
     auto paintLayer = GraphicsLayer::create(m_page->drawingArea()->graphicsLayerFactory(), *m_paintIndicatorLayerClient);
     
@@ -162,9 +162,9 @@ void WebInspectorClient::showPaintRect(const FloatRect& rect)
     paintLayer->setBackgroundColor(Color(1.0f, 0.0f, 0.0f, 0.2f));
 
     KeyframeValueList fadeKeyframes(AnimatedPropertyOpacity);
-    fadeKeyframes.insert(std::make_unique<FloatAnimationValue>(0, 1));
+    fadeKeyframes.insert(makeUnique<FloatAnimationValue>(0, 1));
 
-    fadeKeyframes.insert(std::make_unique<FloatAnimationValue>(0.25, 0));
+    fadeKeyframes.insert(makeUnique<FloatAnimationValue>(0.25, 0));
     
     auto opacityAnimation = Animation::create();
     opacityAnimation->setDuration(0.25);