| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2010 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "core/dom/DocumentEventQueue.h" | 28 #include "core/dom/DocumentEventQueue.h" |
| 29 | 29 |
| 30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 31 #include "core/dom/Event.h" | 31 #include "core/dom/Event.h" |
| 32 #include "core/dom/EventNames.h" | 32 #include "core/dom/EventNames.h" |
| 33 #include "core/dom/WebCoreMemoryInstrumentation.h" | 33 #include "core/dom/WebCoreMemoryInstrumentation.h" |
| 34 #include "core/page/DOMWindow.h" | 34 #include "core/page/DOMWindow.h" |
| 35 #include "core/page/SuspendableTimer.h" | 35 #include "core/page/SuspendableTimer.h" |
| 36 #include <wtf/MemoryInstrumentationHashSet.h> | 36 #include "wtf/MemoryInstrumentationListHashSet.h" |
| 37 #include <wtf/MemoryInstrumentationListHashSet.h> | |
| 38 | 37 |
| 39 namespace WebCore { | 38 namespace WebCore { |
| 40 | 39 |
| 41 class DocumentEventQueueTimer : public SuspendableTimer { | 40 class DocumentEventQueueTimer : public SuspendableTimer { |
| 42 WTF_MAKE_NONCOPYABLE(DocumentEventQueueTimer); | 41 WTF_MAKE_NONCOPYABLE(DocumentEventQueueTimer); |
| 43 public: | 42 public: |
| 44 DocumentEventQueueTimer(DocumentEventQueue* eventQueue, ScriptExecutionConte
xt* context) | 43 DocumentEventQueueTimer(DocumentEventQueue* eventQueue, ScriptExecutionConte
xt* context) |
| 45 : SuspendableTimer(context) | 44 : SuspendableTimer(context) |
| 46 , m_eventQueue(eventQueue) { } | 45 , m_eventQueue(eventQueue) { } |
| 47 | 46 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 void DocumentEventQueue::dispatchEvent(PassRefPtr<Event> event) | 156 void DocumentEventQueue::dispatchEvent(PassRefPtr<Event> event) |
| 158 { | 157 { |
| 159 EventTarget* eventTarget = event->target(); | 158 EventTarget* eventTarget = event->target(); |
| 160 if (eventTarget->toDOMWindow()) | 159 if (eventTarget->toDOMWindow()) |
| 161 eventTarget->toDOMWindow()->dispatchEvent(event, 0); | 160 eventTarget->toDOMWindow()->dispatchEvent(event, 0); |
| 162 else | 161 else |
| 163 eventTarget->dispatchEvent(event); | 162 eventTarget->dispatchEvent(event); |
| 164 } | 163 } |
| 165 | 164 |
| 166 } | 165 } |
| OLD | NEW |