| Index: Source/core/html/HTMLInputElement.cpp
|
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
|
| index a2f8ec87a993edc1c335cca8a1e2c658532b7e9e..899e1c50852f9d44a7d76766584b991f1d7f77dc 100644
|
| --- a/Source/core/html/HTMLInputElement.cpp
|
| +++ b/Source/core/html/HTMLInputElement.cpp
|
| @@ -37,6 +37,7 @@
|
| #include "bindings/v8/ScriptEventListener.h"
|
| #include "core/accessibility/AXObjectCache.h"
|
| #include "core/dom/Document.h"
|
| +#include "core/dom/EventHandlerRegistry.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/dom/IdTargetObserver.h"
|
| #include "core/dom/shadow/ElementShadow.h"
|
| @@ -167,7 +168,7 @@ HTMLInputElement::~HTMLInputElement()
|
| if (isRadioButton())
|
| document().formController().radioButtonGroupScope().removeButton(this);
|
| if (m_hasTouchEventHandler)
|
| - document().didRemoveTouchEventHandler(this);
|
| + EventHandlerRegistry::from(document())->didRemoveEventHandler(*this, EventHandlerRegistry::TouchEvent);
|
| }
|
|
|
| const AtomicString& HTMLInputElement::name() const
|
| @@ -431,9 +432,9 @@ void HTMLInputElement::updateType()
|
| bool hasTouchEventHandler = m_inputTypeView->hasTouchEventHandler();
|
| if (hasTouchEventHandler != m_hasTouchEventHandler) {
|
| if (hasTouchEventHandler)
|
| - document().didAddTouchEventHandler(this);
|
| + EventHandlerRegistry::from(document())->didAddEventHandler(*this, EventHandlerRegistry::TouchEvent);
|
| else
|
| - document().didRemoveTouchEventHandler(this);
|
| + EventHandlerRegistry::from(document())->didRemoveEventHandler(*this, EventHandlerRegistry::TouchEvent);
|
| m_hasTouchEventHandler = hasTouchEventHandler;
|
| }
|
|
|
| @@ -1447,10 +1448,10 @@ void HTMLInputElement::didMoveToNewDocument(Document& oldDocument)
|
| if (isRadioButton())
|
| oldDocument.formController().radioButtonGroupScope().removeButton(this);
|
| if (m_hasTouchEventHandler)
|
| - oldDocument.didRemoveTouchEventHandler(this);
|
| + EventHandlerRegistry::from(oldDocument)->didRemoveEventHandler(*this, EventHandlerRegistry::TouchEvent);
|
|
|
| if (m_hasTouchEventHandler)
|
| - document().didAddTouchEventHandler(this);
|
| + EventHandlerRegistry::from(document())->didAddEventHandler(*this, EventHandlerRegistry::TouchEvent);
|
|
|
| HTMLTextFormControlElement::didMoveToNewDocument(oldDocument);
|
| }
|
|
|