Index: Source/WebKit/chromium/src/WebPluginContainerImpl.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/WebPluginContainerImpl.cpp (revision 138265) |
+++ Source/WebKit/chromium/src/WebPluginContainerImpl.cpp (working copy) |
@@ -527,9 +527,9 @@ |
return; |
m_touchEventRequestType = requestType; |
if (m_touchEventRequestType != TouchEventRequestTypeNone) |
- m_element->document()->didAddTouchEventHandler(); |
+ m_element->document()->didAddTouchEventHandler(m_element); |
else |
- m_element->document()->didRemoveTouchEventHandler(); |
+ m_element->document()->didRemoveTouchEventHandler(m_element); |
} |
void WebPluginContainerImpl::setWantsWheelEvents(bool wantsWheelEvents) |
@@ -672,7 +672,7 @@ |
WebPluginContainerImpl::~WebPluginContainerImpl() |
{ |
if (m_touchEventRequestType != TouchEventRequestTypeNone) |
- m_element->document()->didRemoveTouchEventHandler(); |
+ m_element->document()->didRemoveTouchEventHandler(m_element); |
for (size_t i = 0; i < m_pluginLoadObservers.size(); ++i) |
m_pluginLoadObservers[i]->clearPluginContainer(); |