OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) | 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) |
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 m_target = target; | 174 m_target = target; |
175 if (m_target) | 175 if (m_target) |
176 receivedTarget(); | 176 receivedTarget(); |
177 } | 177 } |
178 | 178 |
179 void Event::receivedTarget() | 179 void Event::receivedTarget() |
180 { | 180 { |
181 } | 181 } |
182 | 182 |
183 void Event::setUnderlyingEvent(PassRefPtr<Event> ue) | 183 void Event::setUnderlyingEvent(PassRefPtrWillBeRawPtr<Event> ue) |
184 { | 184 { |
185 // Prohibit creation of a cycle -- just do nothing in that case. | 185 // Prohibit creation of a cycle -- just do nothing in that case. |
186 for (Event* e = ue.get(); e; e = e->underlyingEvent()) | 186 for (Event* e = ue.get(); e; e = e->underlyingEvent()) |
187 if (e == this) | 187 if (e == this) |
188 return; | 188 return; |
189 m_underlyingEvent = ue; | 189 m_underlyingEvent = ue; |
190 } | 190 } |
191 | 191 |
192 EventPath& Event::ensureEventPath() | 192 EventPath& Event::ensureEventPath() |
193 { | 193 { |
(...skipping 12 matching lines...) Expand all Loading... |
206 return StaticNodeList::createEmpty(); | 206 return StaticNodeList::createEmpty(); |
207 size_t eventPathSize = m_eventPath->size(); | 207 size_t eventPathSize = m_eventPath->size(); |
208 for (size_t i = 0; i < eventPathSize; ++i) { | 208 for (size_t i = 0; i < eventPathSize; ++i) { |
209 if (node == (*m_eventPath)[i].node()) { | 209 if (node == (*m_eventPath)[i].node()) { |
210 return (*m_eventPath)[i].treeScopeEventContext()->ensureEventPath(*m
_eventPath); | 210 return (*m_eventPath)[i].treeScopeEventContext()->ensureEventPath(*m
_eventPath); |
211 } | 211 } |
212 } | 212 } |
213 return StaticNodeList::createEmpty(); | 213 return StaticNodeList::createEmpty(); |
214 } | 214 } |
215 | 215 |
216 void Event::trace(Visitor*) | 216 void Event::trace(Visitor* visitor) |
217 { | 217 { |
| 218 visitor->trace(m_underlyingEvent); |
218 } | 219 } |
219 | 220 |
220 } // namespace WebCore | 221 } // namespace WebCore |
OLD | NEW |