OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializ
er) | 61 FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializ
er) |
62 : UIEvent(type, initializer) | 62 : UIEvent(type, initializer) |
63 , m_relatedTarget(initializer.relatedTarget) | 63 , m_relatedTarget(initializer.relatedTarget) |
64 { | 64 { |
65 ScriptWrappable::init(this); | 65 ScriptWrappable::init(this); |
66 } | 66 } |
67 | 67 |
68 void FocusEvent::trace(Visitor* visitor) | 68 void FocusEvent::trace(Visitor* visitor) |
69 { | 69 { |
| 70 visitor->trace(m_relatedTarget); |
70 UIEvent::trace(visitor); | 71 UIEvent::trace(visitor); |
71 } | 72 } |
72 | 73 |
73 PassRefPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::create(PassRe
fPtrWillBeRawPtr<FocusEvent> focusEvent) | 74 PassRefPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::create(PassRe
fPtrWillBeRawPtr<FocusEvent> focusEvent) |
74 { | 75 { |
75 return adoptRef(new FocusEventDispatchMediator(focusEvent)); | 76 return adoptRef(new FocusEventDispatchMediator(focusEvent)); |
76 } | 77 } |
77 | 78 |
78 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtrWillBeRawPtr<Fo
cusEvent> focusEvent) | 79 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtrWillBeRawPtr<Fo
cusEvent> focusEvent) |
79 : EventDispatchMediator(focusEvent) | 80 : EventDispatchMediator(focusEvent) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 { | 129 { |
129 } | 130 } |
130 | 131 |
131 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c
onst | 132 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c
onst |
132 { | 133 { |
133 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); | 134 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); |
134 return EventDispatchMediator::dispatchEvent(dispatcher); | 135 return EventDispatchMediator::dispatchEvent(dispatcher); |
135 } | 136 } |
136 | 137 |
137 } // namespace WebCore | 138 } // namespace WebCore |
OLD | NEW |