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

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

Issue 2245133006: CL for perf tryjob on win (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL for perf tryjob on mac Created 4 years, 4 months 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 // handling any more events on this target. 624 // handling any more events on this target.
625 if (event->immediatePropagationStopped()) 625 if (event->immediatePropagationStopped())
626 break; 626 break;
627 627
628 event->setHandlingPassive(registeredListener.passive()); 628 event->setHandlingPassive(registeredListener.passive());
629 bool passiveForced = registeredListener.passiveForcedForDocumentTarget() ; 629 bool passiveForced = registeredListener.passiveForcedForDocumentTarget() ;
630 630
631 InspectorInstrumentation::NativeBreakpoint nativeBreakpoint(context, thi s, event); 631 InspectorInstrumentation::NativeBreakpoint nativeBreakpoint(context, thi s, event);
632 632
633 EventListener* listener = registeredListener.listener(); 633 EventListener* listener = registeredListener.listener();
634 634 VLOG(0) << "EventTarget::fireEventListeners: " << event->type();
635 // To match Mozilla, the AT_TARGET phase fires both capturing and bubbli ng 635 // To match Mozilla, the AT_TARGET phase fires both capturing and bubbli ng
636 // event listeners, even though that violates some versions of the DOM s pec. 636 // event listeners, even though that violates some versions of the DOM s pec.
637 listener->handleEvent(context, event); 637 listener->handleEvent(context, event);
638 firedListener = true; 638 firedListener = true;
639 639
640 // If we're about to report this event listener as blocking, make sure i t wasn't 640 // If we're about to report this event listener as blocking, make sure i t wasn't
641 // removed while handling the event. 641 // removed while handling the event.
642 if (shouldReportBlockedEvent && i > 0 && entry[i - 1].listener() == list ener 642 if (shouldReportBlockedEvent && i > 0 && entry[i - 1].listener() == list ener
643 && !entry[i - 1].passive() && !entry[i - 1].blockedEventWarningEmitt ed() && !event->defaultPrevented()) { 643 && !entry[i - 1].passive() && !entry[i - 1].blockedEventWarningEmitt ed() && !event->defaultPrevented()) {
644 reportBlockedEvent(context, event, &entry[i - 1], now - event->platf ormTimeStamp()); 644 reportBlockedEvent(context, event, &entry[i - 1], now - event->platf ormTimeStamp());
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 // they have one less listener to invoke. 695 // they have one less listener to invoke.
696 if (d->firingEventIterators) { 696 if (d->firingEventIterators) {
697 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { 697 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) {
698 d->firingEventIterators->at(i).iterator = 0; 698 d->firingEventIterators->at(i).iterator = 0;
699 d->firingEventIterators->at(i).end = 0; 699 d->firingEventIterators->at(i).end = 0;
700 } 700 }
701 } 701 }
702 } 702 }
703 703
704 } // namespace blink 704 } // namespace blink
OLDNEW
« no previous file with comments | « content/renderer/input/render_widget_input_handler.cc ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698