OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
8 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) | 8 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) |
9 * | 9 * |
10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
(...skipping 15 matching lines...) Expand all Loading... |
26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
27 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 * | 30 * |
31 */ | 31 */ |
32 | 32 |
33 #include "config.h" | 33 #include "config.h" |
34 #include "core/dom/EventListenerMap.h" | 34 #include "core/dom/EventListenerMap.h" |
35 | 35 |
36 #include "core/dom/Event.h" | |
37 #include "core/dom/EventException.h" | |
38 #include "core/dom/EventTarget.h" | 36 #include "core/dom/EventTarget.h" |
39 #include <wtf/MainThread.h> | 37 #include <wtf/MainThread.h> |
40 #include <wtf/StdLibExtras.h> | 38 #include <wtf/StdLibExtras.h> |
41 #include <wtf/Vector.h> | 39 #include <wtf/Vector.h> |
42 | 40 |
43 #ifndef NDEBUG | 41 #ifndef NDEBUG |
44 #include <wtf/Threading.h> | 42 #include <wtf/Threading.h> |
45 #endif | 43 #endif |
46 | 44 |
47 using namespace WTF; | 45 using namespace WTF; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 EventListenerVector& listeners = *m_map->m_entries[m_entryIndex].second; | 254 EventListenerVector& listeners = *m_map->m_entries[m_entryIndex].second; |
257 if (m_index < listeners.size()) | 255 if (m_index < listeners.size()) |
258 return listeners[m_index++].listener.get(); | 256 return listeners[m_index++].listener.get(); |
259 m_index = 0; | 257 m_index = 0; |
260 } | 258 } |
261 | 259 |
262 return 0; | 260 return 0; |
263 } | 261 } |
264 | 262 |
265 } // namespace WebCore | 263 } // namespace WebCore |
OLD | NEW |