Use a 1-byte enum class for TextDirection
[WebKit-https.git] / Source / WebCore / dom / PageTransitionEvent.cpp
index f9c487d..4d869cc 100644 (file)
 #include "config.h"
 #include "PageTransitionEvent.h"
 
-#include "EventNames.h"
-
 namespace WebCore {
-        
-PageTransitionEvent::PageTransitionEvent()
-    : m_persisted(false)
-{
-}
 
 PageTransitionEvent::PageTransitionEvent(const AtomicString& type, bool persisted)
     : Event(type, true, true)
@@ -41,21 +34,17 @@ PageTransitionEvent::PageTransitionEvent(const AtomicString& type, bool persiste
 {
 }
 
-PageTransitionEvent::~PageTransitionEvent()
+PageTransitionEvent::PageTransitionEvent(const AtomicString& type, const Init& initializer, IsTrusted isTrusted)
+    : Event(type, initializer, isTrusted)
+    , m_persisted(initializer.persisted)
 {
 }
 
-void PageTransitionEvent::initPageTransitionEvent(const AtomicString& type, 
-                                            bool canBubbleArg,
-                                            bool cancelableArg,
-                                            bool persisted)
+PageTransitionEvent::~PageTransitionEvent() = default;
+
+EventInterface PageTransitionEvent::eventInterface() const
 {
-    if (dispatched())
-        return;
-    
-    initEvent(type, canBubbleArg, cancelableArg);
-    
-    m_persisted = persisted;
+    return PageTransitionEventInterfaceType;
 }
 
 } // namespace WebCore