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

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

Issue 2348993002: Don't include LayoutObject.h from FrameView.h (Closed)
Patch Set: Created 4 years, 3 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, 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 19 matching lines...) Expand all
30 #include "core/dom/Element.h" 30 #include "core/dom/Element.h"
31 #include "core/events/EventDispatchMediator.h" 31 #include "core/events/EventDispatchMediator.h"
32 #include "core/events/MouseEvent.h" 32 #include "core/events/MouseEvent.h"
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/inspector/InspectorTraceEvents.h" 41 #include "core/inspector/InspectorTraceEvents.h"
41 #include "platform/EventDispatchForbiddenScope.h" 42 #include "platform/EventDispatchForbiddenScope.h"
42 #include "platform/TraceEvent.h" 43 #include "platform/TraceEvent.h"
43 #include "wtf/RefPtr.h" 44 #include "wtf/RefPtr.h"
44 45
45 namespace blink { 46 namespace blink {
46 47
47 DispatchEventResult EventDispatcher::dispatchEvent(Node& node, EventDispatchMedi ator* mediator) 48 DispatchEventResult EventDispatcher::dispatchEvent(Node& node, EventDispatchMedi ator* mediator)
48 { 49 {
49 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("blink.debug"), "EventDispatcher::dis patchEvent"); 50 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("blink.debug"), "EventDispatcher::dis patchEvent");
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 259
259 // Track the usage of sending a mousedown event to a select element to force 260 // Track the usage of sending a mousedown event to a select element to force
260 // it to open. This measures a possible breakage of not allowing untrusted 261 // it to open. This measures a possible breakage of not allowing untrusted
261 // events to open select boxes. 262 // events to open select boxes.
262 if (!m_event->isTrusted() && m_event->isMouseEvent() && m_event->type() == E ventTypeNames::mousedown && isHTMLSelectElement(*m_node)) { 263 if (!m_event->isTrusted() && m_event->isMouseEvent() && m_event->type() == E ventTypeNames::mousedown && isHTMLSelectElement(*m_node)) {
263 UseCounter::count(m_node->document(), UseCounter::UntrustedMouseDownEven tDispatchedToSelect); 264 UseCounter::count(m_node->document(), UseCounter::UntrustedMouseDownEven tDispatchedToSelect);
264 } 265 }
265 } 266 }
266 267
267 } // namespace blink 268 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698