| 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 | 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 DEFINE_STATIC_LOCAL(HeapHashSet<Member<Node>>, | 87 DEFINE_STATIC_LOCAL(HeapHashSet<Member<Node>>, |
| 88 nodesDispatchingSimulatedClicks, | 88 nodesDispatchingSimulatedClicks, |
| 89 (new HeapHashSet<Member<Node>>)); | 89 (new HeapHashSet<Member<Node>>)); |
| 90 | 90 |
| 91 if (isDisabledFormControl(&node)) | 91 if (isDisabledFormControl(&node)) |
| 92 return; | 92 return; |
| 93 | 93 |
| 94 if (nodesDispatchingSimulatedClicks.contains(&node)) | 94 if (nodesDispatchingSimulatedClicks.contains(&node)) |
| 95 return; | 95 return; |
| 96 | 96 |
| 97 nodesDispatchingSimulatedClicks.add(&node); | 97 nodesDispatchingSimulatedClicks.insert(&node); |
| 98 | 98 |
| 99 if (mouseEventOptions == SendMouseOverUpDownEvents) | 99 if (mouseEventOptions == SendMouseOverUpDownEvents) |
| 100 EventDispatcher(node, MouseEvent::create(EventTypeNames::mouseover, | 100 EventDispatcher(node, MouseEvent::create(EventTypeNames::mouseover, |
| 101 node.document().domWindow(), | 101 node.document().domWindow(), |
| 102 underlyingEvent, creationScope)) | 102 underlyingEvent, creationScope)) |
| 103 .dispatch(); | 103 .dispatch(); |
| 104 | 104 |
| 105 if (mouseEventOptions != SendNoEvents) { | 105 if (mouseEventOptions != SendNoEvents) { |
| 106 EventDispatcher(node, MouseEvent::create(EventTypeNames::mousedown, | 106 EventDispatcher(node, MouseEvent::create(EventTypeNames::mousedown, |
| 107 node.document().domWindow(), | 107 node.document().domWindow(), |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 // events to open select boxes. | 320 // events to open select boxes. |
| 321 if (!m_event->isTrusted() && m_event->isMouseEvent() && | 321 if (!m_event->isTrusted() && m_event->isMouseEvent() && |
| 322 m_event->type() == EventTypeNames::mousedown && | 322 m_event->type() == EventTypeNames::mousedown && |
| 323 isHTMLSelectElement(*m_node)) { | 323 isHTMLSelectElement(*m_node)) { |
| 324 UseCounter::count(m_node->document(), | 324 UseCounter::count(m_node->document(), |
| 325 UseCounter::UntrustedMouseDownEventDispatchedToSelect); | 325 UseCounter::UntrustedMouseDownEventDispatchedToSelect); |
| 326 } | 326 } |
| 327 } | 327 } |
| 328 | 328 |
| 329 } // namespace blink | 329 } // namespace blink |
| OLD | NEW |