| 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, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * Copyright (C) 2011 Google Inc. All rights reserved. | 8 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "core/events/ScopedEventQueue.h" | 33 #include "core/events/ScopedEventQueue.h" |
| 34 #include "core/events/WindowEventContext.h" | 34 #include "core/events/WindowEventContext.h" |
| 35 #include "core/frame/Deprecation.h" | 35 #include "core/frame/Deprecation.h" |
| 36 #include "core/frame/FrameView.h" | 36 #include "core/frame/FrameView.h" |
| 37 #include "core/frame/LocalDOMWindow.h" | 37 #include "core/frame/LocalDOMWindow.h" |
| 38 #include "core/frame/Settings.h" | 38 #include "core/frame/Settings.h" |
| 39 #include "core/frame/UseCounter.h" | 39 #include "core/frame/UseCounter.h" |
| 40 #include "core/html/HTMLElement.h" | 40 #include "core/html/HTMLElement.h" |
| 41 #include "core/inspector/InspectorTraceEvents.h" | 41 #include "core/inspector/InspectorTraceEvents.h" |
| 42 #include "platform/EventDispatchForbiddenScope.h" | 42 #include "platform/EventDispatchForbiddenScope.h" |
| 43 #include "platform/TraceEvent.h" | 43 #include "platform/tracing/TraceEvent.h" |
| 44 #include "wtf/RefPtr.h" | 44 #include "wtf/RefPtr.h" |
| 45 | 45 |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 DispatchEventResult EventDispatcher::dispatchEvent( | 48 DispatchEventResult EventDispatcher::dispatchEvent( |
| 49 Node& node, | 49 Node& node, |
| 50 EventDispatchMediator* mediator) { | 50 EventDispatchMediator* mediator) { |
| 51 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("blink.debug"), | 51 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("blink.debug"), |
| 52 "EventDispatcher::dispatchEvent"); | 52 "EventDispatcher::dispatchEvent"); |
| 53 #if DCHECK_IS_ON() | 53 #if DCHECK_IS_ON() |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 // events to open select boxes. | 302 // events to open select boxes. |
| 303 if (!m_event->isTrusted() && m_event->isMouseEvent() && | 303 if (!m_event->isTrusted() && m_event->isMouseEvent() && |
| 304 m_event->type() == EventTypeNames::mousedown && | 304 m_event->type() == EventTypeNames::mousedown && |
| 305 isHTMLSelectElement(*m_node)) { | 305 isHTMLSelectElement(*m_node)) { |
| 306 UseCounter::count(m_node->document(), | 306 UseCounter::count(m_node->document(), |
| 307 UseCounter::UntrustedMouseDownEventDispatchedToSelect); | 307 UseCounter::UntrustedMouseDownEventDispatchedToSelect); |
| 308 } | 308 } |
| 309 } | 309 } |
| 310 | 310 |
| 311 } // namespace blink | 311 } // namespace blink |
| OLD | NEW |