Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: third_party/WebKit/Source/core/events/EventTarget.cpp

Issue 2514643002: DevTools: support all handlers that end up with function call in perfmonitor. (Closed)
Patch Set: review comments addressed. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 // If stopImmediatePropagation has been called, we just break out 677 // If stopImmediatePropagation has been called, we just break out
678 // immediately, without handling any more events on this target. 678 // immediately, without handling any more events on this target.
679 if (event->immediatePropagationStopped()) 679 if (event->immediatePropagationStopped())
680 break; 680 break;
681 681
682 event->setHandlingPassive(eventPassiveMode(registeredListener)); 682 event->setHandlingPassive(eventPassiveMode(registeredListener));
683 bool passiveForced = registeredListener.passiveForcedForDocumentTarget(); 683 bool passiveForced = registeredListener.passiveForcedForDocumentTarget();
684 684
685 InspectorInstrumentation::NativeBreakpoint nativeBreakpoint(context, this, 685 InspectorInstrumentation::NativeBreakpoint nativeBreakpoint(context, this,
686 event); 686 event);
687 PerformanceMonitor::HandlerCall handlerCall(context, listener); 687 PerformanceMonitor::HandlerCall handlerCall(context, event->type(), false);
688 688
689 // To match Mozilla, the AT_TARGET phase fires both capturing and bubbling 689 // To match Mozilla, the AT_TARGET phase fires both capturing and bubbling
690 // event listeners, even though that violates some versions of the DOM spec. 690 // event listeners, even though that violates some versions of the DOM spec.
691 listener->handleEvent(context, event); 691 listener->handleEvent(context, event);
692 firedListener = true; 692 firedListener = true;
693 693
694 // If we're about to report this event listener as blocking, make sure it 694 // If we're about to report this event listener as blocking, make sure it
695 // wasn't removed while handling the event. 695 // wasn't removed while handling the event.
696 if (shouldReportBlockedEvent && i > 0 && 696 if (shouldReportBlockedEvent && i > 0 &&
697 entry[i - 1].listener() == listener && !entry[i - 1].passive() && 697 entry[i - 1].listener() == listener && !entry[i - 1].passive() &&
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 // they have one less listener to invoke. 751 // they have one less listener to invoke.
752 if (d->firingEventIterators) { 752 if (d->firingEventIterators) {
753 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { 753 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) {
754 d->firingEventIterators->at(i).iterator = 0; 754 d->firingEventIterators->at(i).iterator = 0;
755 d->firingEventIterators->at(i).end = 0; 755 d->firingEventIterators->at(i).end = 0;
756 } 756 }
757 } 757 }
758 } 758 }
759 759
760 } // namespace blink 760 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp ('k') | third_party/WebKit/Source/core/frame/DOMTimer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698