| 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 2647b3b31e9b2ab662d09933010f0ffcc62df91d..d7133398c63ee0461627fcff1520764c7995d79e 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
|
| @@ -96,7 +96,7 @@ HTMLImageElement::HTMLImageElement(Document& document, HTMLFormElement* form, bo
|
| , m_referrerPolicy(ReferrerPolicyDefault)
|
| {
|
| setHasCustomStyleCallbacks();
|
| - if (form && form->inShadowIncludingDocument()) {
|
| + if (form && form->isConnected()) {
|
| m_form = form;
|
| m_formWasSetByParser = true;
|
| m_form->associate(*this);
|
| @@ -389,7 +389,7 @@ Node::InsertionNotificationRequest HTMLImageElement::insertedInto(ContainerNode*
|
|
|
| // If we have been inserted from a layoutObject-less document,
|
| // our loader may have not fetched the image, so do it now.
|
| - if ((insertionPoint->inShadowIncludingDocument() && !imageLoader().image()) || imageWasModified)
|
| + if ((insertionPoint->isConnected() && !imageLoader().image()) || imageWasModified)
|
| imageLoader().updateFromElement(ImageLoader::UpdateNormal, m_referrerPolicy);
|
|
|
| return HTMLElement::insertedInto(insertionPoint);
|
|
|