| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 322 |
| 323 // If stopImmediatePropagation has been called, we just break out immedi
ately, without | 323 // If stopImmediatePropagation has been called, we just break out immedi
ately, without |
| 324 // handling any more events on this target. | 324 // handling any more events on this target. |
| 325 if (event->immediatePropagationStopped()) | 325 if (event->immediatePropagationStopped()) |
| 326 break; | 326 break; |
| 327 | 327 |
| 328 ExecutionContext* context = executionContext(); | 328 ExecutionContext* context = executionContext(); |
| 329 if (!context) | 329 if (!context) |
| 330 break; | 330 break; |
| 331 | 331 |
| 332 InspectorInstrumentationCookie cookie = InspectorInstrumentation::willHa
ndleEvent(this, event->type(), registeredListener.listener.get(), registeredList
ener.useCapture); | 332 InspectorInstrumentationCookie cookie = InspectorInstrumentation::willHa
ndleEvent(this, event, registeredListener.listener.get(), registeredListener.use
Capture); |
| 333 // To match Mozilla, the AT_TARGET phase fires both capturing and bubbli
ng | 333 // To match Mozilla, the AT_TARGET phase fires both capturing and bubbli
ng |
| 334 // event listeners, even though that violates some versions of the DOM s
pec. | 334 // event listeners, even though that violates some versions of the DOM s
pec. |
| 335 registeredListener.listener->handleEvent(context, event); | 335 registeredListener.listener->handleEvent(context, event); |
| 336 InspectorInstrumentation::didHandleEvent(cookie); | 336 InspectorInstrumentation::didHandleEvent(cookie); |
| 337 } | 337 } |
| 338 d->firingEventIterators->removeLast(); | 338 d->firingEventIterators->removeLast(); |
| 339 } | 339 } |
| 340 | 340 |
| 341 const EventListenerVector& EventTarget::getEventListeners(const AtomicString& ev
entType) | 341 const EventListenerVector& EventTarget::getEventListeners(const AtomicString& ev
entType) |
| 342 { | 342 { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 370 // they have one less listener to invoke. | 370 // they have one less listener to invoke. |
| 371 if (d->firingEventIterators) { | 371 if (d->firingEventIterators) { |
| 372 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { | 372 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { |
| 373 d->firingEventIterators->at(i).iterator = 0; | 373 d->firingEventIterators->at(i).iterator = 0; |
| 374 d->firingEventIterators->at(i).end = 0; | 374 d->firingEventIterators->at(i).end = 0; |
| 375 } | 375 } |
| 376 } | 376 } |
| 377 } | 377 } |
| 378 | 378 |
| 379 } // namespace WebCore | 379 } // namespace WebCore |
| OLD | NEW |