| Index: Source/core/html/HTMLInputElement.cpp
|
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
|
| index af4cbd6fc078980aedf0d958fff7a10c88d9990c..9834400a2de0585257be1724dc83e384a9c25924 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;
|
| }
|
|
|
| @@ -1449,10 +1450,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);
|
| }
|
|
|