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

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: 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(
688 context, event->type().ascii().data(), false);
caseq 2016/11/18 00:33:48 So you're passing a string from temporary object t
688 689
689 // To match Mozilla, the AT_TARGET phase fires both capturing and bubbling 690 // 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. 691 // event listeners, even though that violates some versions of the DOM spec.
691 listener->handleEvent(context, event); 692 listener->handleEvent(context, event);
692 firedListener = true; 693 firedListener = true;
693 694
694 // If we're about to report this event listener as blocking, make sure it 695 // If we're about to report this event listener as blocking, make sure it
695 // wasn't removed while handling the event. 696 // wasn't removed while handling the event.
696 if (shouldReportBlockedEvent && i > 0 && 697 if (shouldReportBlockedEvent && i > 0 &&
697 entry[i - 1].listener() == listener && !entry[i - 1].passive() && 698 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. 752 // they have one less listener to invoke.
752 if (d->firingEventIterators) { 753 if (d->firingEventIterators) {
753 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { 754 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) {
754 d->firingEventIterators->at(i).iterator = 0; 755 d->firingEventIterators->at(i).iterator = 0;
755 d->firingEventIterators->at(i).end = 0; 756 d->firingEventIterators->at(i).end = 0;
756 } 757 }
757 } 758 }
758 } 759 }
759 760
760 } // namespace blink 761 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698