| Index: third_party/WebKit/Source/core/html/HTMLImageElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
|
| index e5c5aaec361848087d4e54265076ad15ce5e47c9..5fb0fb85282aecaee2d4372c151e0708cd216c32 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
|
| @@ -100,12 +100,6 @@ HTMLImageElement::HTMLImageElement(Document& document,
|
| m_isFallbackImage(false),
|
| m_referrerPolicy(ReferrerPolicyDefault) {
|
| setHasCustomStyleCallbacks();
|
| - if (form && form->isConnected()) {
|
| - m_form = form;
|
| - m_formWasSetByParser = true;
|
| - m_form->associate(*this);
|
| - m_form->didAssociateByParser();
|
| - }
|
| }
|
|
|
| HTMLImageElement* HTMLImageElement::create(Document& document) {
|
| @@ -892,6 +886,13 @@ IntSize HTMLImageElement::bitmapSourceSize() const {
|
| return IntSize(lSize.width().toInt(), lSize.height().toInt());
|
| }
|
|
|
| -void HTMLImageElement::associateWith(HTMLFormElement*){};
|
| +void HTMLImageElement::associateWith(HTMLFormElement* form) {
|
| + if (form && form->isConnected()) {
|
| + m_form = form;
|
| + m_formWasSetByParser = true;
|
| + m_form->associate(*this);
|
| + m_form->didAssociateByParser();
|
| + }
|
| +};
|
|
|
| } // namespace blink
|
|
|