[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebCore / dom / KeyboardEvent.cpp
index 7e7a347..ce856bb 100644 (file)
@@ -96,7 +96,7 @@ inline KeyboardEvent::KeyboardEvent() = default;
 inline KeyboardEvent::KeyboardEvent(const PlatformKeyboardEvent& key, RefPtr<WindowProxy>&& view)
     : UIEventWithKeyState(eventTypeForKeyboardEventType(key.type()), CanBubble::Yes, IsCancelable::Yes, IsComposed::Yes,
         key.timestamp().approximateMonotonicTime(), view.copyRef(), 0, key.modifiers(), IsTrusted::Yes)
-    , m_underlyingPlatformEvent(std::make_unique<PlatformKeyboardEvent>(key))
+    , m_underlyingPlatformEvent(makeUnique<PlatformKeyboardEvent>(key))
 #if ENABLE(KEYBOARD_KEY_ATTRIBUTE)
     , m_key(key.key())
 #endif