| Index: third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
|
| index 49df064719b01e83a1f281be20e93eac41d121ee..b088b797fccfd7d94d5bce1925af3ef97b612c82 100644
|
| --- a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
|
| @@ -191,15 +191,8 @@ void EventHandlerRegistry::didMoveBetweenFrameHosts(EventTarget& target,
|
| FrameHost* oldFrameHost,
|
| FrameHost* newFrameHost) {
|
| ASSERT(newFrameHost != oldFrameHost);
|
| - for (size_t i = 0; i < EventHandlerClassCount; ++i) {
|
| - EventHandlerClass handlerClass = static_cast<EventHandlerClass>(i);
|
| - const EventTargetSet* targets =
|
| - &oldFrameHost->eventHandlerRegistry().m_targets[handlerClass];
|
| - for (unsigned count = targets->count(&target); count > 0; --count)
|
| - newFrameHost->eventHandlerRegistry().didAddEventHandler(target,
|
| - handlerClass);
|
| - }
|
| - oldFrameHost->eventHandlerRegistry().didRemoveAllEventHandlers(target);
|
| + oldFrameHost->eventHandlerRegistry().didMoveOutOfFrameHost(target);
|
| + newFrameHost->eventHandlerRegistry().didMoveIntoFrameHost(target);
|
| }
|
|
|
| void EventHandlerRegistry::didRemoveAllEventHandlers(EventTarget& target) {
|
|
|