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

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

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference Created 3 years, 10 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 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2011 Google Inc. All rights reserved. 10 * Copyright (C) 2011 Google Inc. All rights reserved.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Some elements (e.g. the color picker) may set active state to true before 116 // Some elements (e.g. the color picker) may set active state to true before
117 // calling this method and expect the state to be reset during the call. 117 // calling this method and expect the state to be reset during the call.
118 node.setActive(false); 118 node.setActive(false);
119 119
120 // always send click 120 // always send click
121 EventDispatcher(node, MouseEvent::create(EventTypeNames::click, 121 EventDispatcher(node, MouseEvent::create(EventTypeNames::click,
122 node.document().domWindow(), 122 node.document().domWindow(),
123 underlyingEvent, creationScope)) 123 underlyingEvent, creationScope))
124 .dispatch(); 124 .dispatch();
125 125
126 nodesDispatchingSimulatedClicks.remove(&node); 126 nodesDispatchingSimulatedClicks.erase(&node);
127 } 127 }
128 128
129 DispatchEventResult EventDispatcher::dispatch() { 129 DispatchEventResult EventDispatcher::dispatch() {
130 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("blink.debug"), 130 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("blink.debug"),
131 "EventDispatcher::dispatch"); 131 "EventDispatcher::dispatch");
132 132
133 #if DCHECK_IS_ON() 133 #if DCHECK_IS_ON()
134 DCHECK(!m_eventDispatched); 134 DCHECK(!m_eventDispatched);
135 m_eventDispatched = true; 135 m_eventDispatched = true;
136 #endif 136 #endif
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // events to open select boxes. 307 // events to open select boxes.
308 if (!m_event->isTrusted() && m_event->isMouseEvent() && 308 if (!m_event->isTrusted() && m_event->isMouseEvent() &&
309 m_event->type() == EventTypeNames::mousedown && 309 m_event->type() == EventTypeNames::mousedown &&
310 isHTMLSelectElement(*m_node)) { 310 isHTMLSelectElement(*m_node)) {
311 UseCounter::count(m_node->document(), 311 UseCounter::count(m_node->document(),
312 UseCounter::UntrustedMouseDownEventDispatchedToSelect); 312 UseCounter::UntrustedMouseDownEventDispatchedToSelect);
313 } 313 }
314 } 314 }
315 315
316 } // namespace blink 316 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698