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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 { | 59 { |
60 m_pendingEventTimer->suspendIfNeeded(); | 60 m_pendingEventTimer->suspendIfNeeded(); |
61 } | 61 } |
62 | 62 |
63 DOMWindowEventQueue::~DOMWindowEventQueue() | 63 DOMWindowEventQueue::~DOMWindowEventQueue() |
64 { | 64 { |
65 } | 65 } |
66 | 66 |
67 void DOMWindowEventQueue::trace(Visitor* visitor) | 67 void DOMWindowEventQueue::trace(Visitor* visitor) |
68 { | 68 { |
| 69 #if ENABLE(OILPAN) |
69 visitor->trace(m_pendingEventTimer); | 70 visitor->trace(m_pendingEventTimer); |
70 visitor->trace(m_queuedEvents); | 71 visitor->trace(m_queuedEvents); |
| 72 #endif |
71 EventQueue::trace(visitor); | 73 EventQueue::trace(visitor); |
72 } | 74 } |
73 | 75 |
74 bool DOMWindowEventQueue::enqueueEvent(PassRefPtrWillBeRawPtr<Event> event) | 76 bool DOMWindowEventQueue::enqueueEvent(PassRefPtrWillBeRawPtr<Event> event) |
75 { | 77 { |
76 if (m_isClosed) | 78 if (m_isClosed) |
77 return false; | 79 return false; |
78 | 80 |
79 ASSERT(event->target()); | 81 ASSERT(event->target()); |
80 InspectorInstrumentation::didEnqueueEvent(event->target(), event.get()); | 82 InspectorInstrumentation::didEnqueueEvent(event->target(), event.get()); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void DOMWindowEventQueue::dispatchEvent(PassRefPtrWillBeRawPtr<Event> event) | 141 void DOMWindowEventQueue::dispatchEvent(PassRefPtrWillBeRawPtr<Event> event) |
140 { | 142 { |
141 EventTarget* eventTarget = event->target(); | 143 EventTarget* eventTarget = event->target(); |
142 if (eventTarget->toDOMWindow()) | 144 if (eventTarget->toDOMWindow()) |
143 eventTarget->toDOMWindow()->dispatchEvent(event, nullptr); | 145 eventTarget->toDOMWindow()->dispatchEvent(event, nullptr); |
144 else | 146 else |
145 eventTarget->dispatchEvent(event); | 147 eventTarget->dispatchEvent(event); |
146 } | 148 } |
147 | 149 |
148 } | 150 } |
OLD | NEW |