*/
#include "config.h"
-
#include "ErrorEvent.h"
#include "EventNames.h"
{
}
-void ErrorEvent::initErrorEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& message, const String& fileName, unsigned lineNumber)
-{
- if (dispatched())
- return;
-
- initEvent(type, canBubble, cancelable);
-
- m_message = message;
- m_fileName = fileName;
- m_lineNumber = lineNumber;
-}
-
-bool ErrorEvent::isErrorEvent() const
+const AtomicString& ErrorEvent::interfaceName() const
{
- return true;
+ return eventNames().interfaceForErrorEvent;
}
} // namespace WebCore