diff options
Diffstat (limited to 'Source/WebCore/dom/FocusEvent.cpp')
-rw-r--r-- | Source/WebCore/dom/FocusEvent.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/Source/WebCore/dom/FocusEvent.cpp b/Source/WebCore/dom/FocusEvent.cpp index d1aaa1e98..16d8b3ff0 100644 --- a/Source/WebCore/dom/FocusEvent.cpp +++ b/Source/WebCore/dom/FocusEvent.cpp @@ -30,11 +30,6 @@ namespace WebCore { -FocusEventInit::FocusEventInit() - : relatedTarget(0) -{ -} - EventInterface FocusEvent::eventInterface() const { return FocusEventInterfaceType; @@ -45,18 +40,14 @@ bool FocusEvent::isFocusEvent() const return true; } -FocusEvent::FocusEvent() -{ -} - -FocusEvent::FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView> view, int detail, PassRefPtr<EventTarget> relatedTarget) +FocusEvent::FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, DOMWindow* view, int detail, RefPtr<EventTarget>&& relatedTarget) : UIEvent(type, canBubble, cancelable, view, detail) - , m_relatedTarget(relatedTarget) + , m_relatedTarget(WTFMove(relatedTarget)) { } -FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializer) - : UIEvent(type, initializer) +FocusEvent::FocusEvent(const AtomicString& type, const Init& initializer, IsTrusted isTrusted) + : UIEvent(type, initializer, isTrusted) , m_relatedTarget(initializer.relatedTarget) { } |