| Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| index 30d095c3992bb071d24282013eb7667dbea0056a..3af1302dea58d8028451e9e5f042cf8f13b9c56e 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| @@ -852,6 +852,9 @@ LayoutObject* HTMLInputElement::createLayoutObject(const ComputedStyle& style) {
|
|
|
| void HTMLInputElement::attachLayoutTree(const AttachContext& context) {
|
| HTMLTextFormControlElement::attachLayoutTree(context);
|
| + if (layoutObject()) {
|
| + m_inputType->onAttachWithLayoutObject();
|
| + }
|
|
|
| m_inputTypeView->startResourceLoading();
|
| m_inputType->countUsage();
|
| @@ -861,6 +864,9 @@ void HTMLInputElement::attachLayoutTree(const AttachContext& context) {
|
| }
|
|
|
| void HTMLInputElement::detachLayoutTree(const AttachContext& context) {
|
| + if (layoutObject()) {
|
| + m_inputType->onDetachWithLayoutObject();
|
| + }
|
| HTMLTextFormControlElement::detachLayoutTree(context);
|
| m_needsToUpdateViewValue = true;
|
| m_inputTypeView->closePopupView();
|
|
|