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 * | 8 * |
9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
10 * modification, are permitted provided that the following conditions | 10 * modification, are permitted provided that the following conditions |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 } | 176 } |
177 | 177 |
178 LocalDOMWindow* EventTarget::toLocalDOMWindow() { | 178 LocalDOMWindow* EventTarget::toLocalDOMWindow() { |
179 return nullptr; | 179 return nullptr; |
180 } | 180 } |
181 | 181 |
182 MessagePort* EventTarget::toMessagePort() { | 182 MessagePort* EventTarget::toMessagePort() { |
183 return nullptr; | 183 return nullptr; |
184 } | 184 } |
185 | 185 |
| 186 ServiceWorker* EventTarget::toServiceWorker() { |
| 187 return nullptr; |
| 188 } |
| 189 |
186 inline LocalDOMWindow* EventTarget::executingWindow() { | 190 inline LocalDOMWindow* EventTarget::executingWindow() { |
187 if (ExecutionContext* context = getExecutionContext()) | 191 if (ExecutionContext* context = getExecutionContext()) |
188 return context->executingWindow(); | 192 return context->executingWindow(); |
189 return nullptr; | 193 return nullptr; |
190 } | 194 } |
191 | 195 |
192 void EventTarget::setDefaultAddEventListenerOptions( | 196 void EventTarget::setDefaultAddEventListenerOptions( |
193 const AtomicString& eventType, | 197 const AtomicString& eventType, |
194 AddEventListenerOptionsResolved& options) { | 198 AddEventListenerOptionsResolved& options) { |
195 if (!isScrollBlockingEvent(eventType)) { | 199 if (!isScrollBlockingEvent(eventType)) { |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 // they have one less listener to invoke. | 762 // they have one less listener to invoke. |
759 if (d->firingEventIterators) { | 763 if (d->firingEventIterators) { |
760 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { | 764 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { |
761 d->firingEventIterators->at(i).iterator = 0; | 765 d->firingEventIterators->at(i).iterator = 0; |
762 d->firingEventIterators->at(i).end = 0; | 766 d->firingEventIterators->at(i).end = 0; |
763 } | 767 } |
764 } | 768 } |
765 } | 769 } |
766 | 770 |
767 } // namespace blink | 771 } // namespace blink |
OLD | NEW |