Index: third_party/WebKit/Source/core/events/EventDispatcher.cpp |
diff --git a/third_party/WebKit/Source/core/events/EventDispatcher.cpp b/third_party/WebKit/Source/core/events/EventDispatcher.cpp |
index 5a51d615ecd92049c55572114884d12089032dcd..d2f5343c18aaecfc2b8c9272dbcf82f05aa8760a 100644 |
--- a/third_party/WebKit/Source/core/events/EventDispatcher.cpp |
+++ b/third_party/WebKit/Source/core/events/EventDispatcher.cpp |
@@ -73,15 +73,15 @@ void EventDispatcher::dispatchSimulatedClick(Node& node, Event* underlyingEvent, |
// This persistent vector doesn't cause leaks, because added Nodes are removed |
// before dispatchSimulatedClick() returns. This vector is here just to prevent |
// the code from running into an infinite recursion of dispatchSimulatedClick(). |
- DEFINE_STATIC_LOCAL(Persistent<HeapHashSet<Member<Node>>>, nodesDispatchingSimulatedClicks, (new HeapHashSet<Member<Node>>())); |
+ DEFINE_STATIC_LOCAL(HeapHashSet<Member<Node>>, nodesDispatchingSimulatedClicks, (new HeapHashSet<Member<Node>>)); |
if (isDisabledFormControl(&node)) |
return; |
- if (nodesDispatchingSimulatedClicks->contains(&node)) |
+ if (nodesDispatchingSimulatedClicks.contains(&node)) |
return; |
- nodesDispatchingSimulatedClicks->add(&node); |
+ nodesDispatchingSimulatedClicks.add(&node); |
if (mouseEventOptions == SendMouseOverUpDownEvents) |
EventDispatcher(node, MouseEvent::create(EventTypeNames::mouseover, node.document().domWindow(), underlyingEvent, creationScope)).dispatch(); |
@@ -98,7 +98,7 @@ void EventDispatcher::dispatchSimulatedClick(Node& node, Event* underlyingEvent, |
// always send click |
EventDispatcher(node, MouseEvent::create(EventTypeNames::click, node.document().domWindow(), underlyingEvent, creationScope)).dispatch(); |
- nodesDispatchingSimulatedClicks->remove(&node); |
+ nodesDispatchingSimulatedClicks.remove(&node); |
} |
DispatchEventResult EventDispatcher::dispatch() |