| 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 | 697 |
| 698 // If stopImmediatePropagation has been called, we just break out | 698 // If stopImmediatePropagation has been called, we just break out |
| 699 // immediately, without handling any more events on this target. | 699 // immediately, without handling any more events on this target. |
| 700 if (event->immediatePropagationStopped()) | 700 if (event->immediatePropagationStopped()) |
| 701 break; | 701 break; |
| 702 | 702 |
| 703 event->setHandlingPassive(eventPassiveMode(registeredListener)); | 703 event->setHandlingPassive(eventPassiveMode(registeredListener)); |
| 704 bool passiveForced = registeredListener.passiveForcedForDocumentTarget(); | 704 bool passiveForced = registeredListener.passiveForcedForDocumentTarget(); |
| 705 | 705 |
| 706 probe::NativeBreakpoint nativeBreakpoint(context, this, event); | 706 probe::NativeBreakpoint nativeBreakpoint(context, this, event); |
| 707 PerformanceMonitor::HandlerCall handlerCall(context, event->type(), false); | 707 probe::UserCallback probe(context, "", event->type(), false); |
| 708 | 708 |
| 709 // To match Mozilla, the AT_TARGET phase fires both capturing and bubbling | 709 // To match Mozilla, the AT_TARGET phase fires both capturing and bubbling |
| 710 // event listeners, even though that violates some versions of the DOM spec. | 710 // event listeners, even though that violates some versions of the DOM spec. |
| 711 listener->handleEvent(context, event); | 711 listener->handleEvent(context, event); |
| 712 firedListener = true; | 712 firedListener = true; |
| 713 | 713 |
| 714 // If we're about to report this event listener as blocking, make sure it | 714 // If we're about to report this event listener as blocking, make sure it |
| 715 // wasn't removed while handling the event. | 715 // wasn't removed while handling the event. |
| 716 if (shouldReportBlockedEvent && i > 0 && | 716 if (shouldReportBlockedEvent && i > 0 && |
| 717 entry[i - 1].listener() == listener && !entry[i - 1].passive() && | 717 entry[i - 1].listener() == listener && !entry[i - 1].passive() && |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 // they have one less listener to invoke. | 771 // they have one less listener to invoke. |
| 772 if (d->firingEventIterators) { | 772 if (d->firingEventIterators) { |
| 773 for (const auto& iterator : *d->firingEventIterators) { | 773 for (const auto& iterator : *d->firingEventIterators) { |
| 774 iterator.iterator = 0; | 774 iterator.iterator = 0; |
| 775 iterator.end = 0; | 775 iterator.end = 0; |
| 776 } | 776 } |
| 777 } | 777 } |
| 778 } | 778 } |
| 779 | 779 |
| 780 } // namespace blink | 780 } // namespace blink |
| OLD | NEW |