Make all ScriptWrappable IsoHeap-ed
[WebKit-https.git] / Source / WebCore / Modules / gamepad / GamepadEvent.cpp
index a6800af..36fc61f 100644 (file)
 
 #if ENABLE(GAMEPAD)
 
+#include <wtf/IsoMallocInlines.h>
+
 namespace WebCore {
 
-GamepadEvent::GamepadEvent(const AtomicString& eventType, Gamepad& gamepad)
-    : Event(eventType, false, false)
+WTF_MAKE_ISO_ALLOCATED_IMPL(GamepadEvent);
+
+GamepadEvent::GamepadEvent(const AtomString& eventType, Gamepad& gamepad)
+    : Event(eventType, CanBubble::No, IsCancelable::No)
     , m_gamepad(&gamepad)
 {
 }
 
-GamepadEvent::GamepadEvent(const AtomicString& eventType, const Init& initializer, IsTrusted isTrusted)
+GamepadEvent::GamepadEvent(const AtomString& eventType, const Init& initializer, IsTrusted isTrusted)
     : Event(eventType, initializer, isTrusted)
     , m_gamepad(initializer.gamepad)
 {