| Index: Source/core/html/HTMLInputElement.cpp
|
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
|
| index 22930c93f492d721745f3be76cb9215efda9999d..31c3494f3683cf7c1fafa404363a9d41e438840d 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;
|
| }
|
|
|
| @@ -1451,10 +1452,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);
|
| }
|
|
|