| Index: third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| index fc459a3c1102ca01938217eee7b1f83473882e35..6140e825f239c3cfa8c216d1704edbe32faab4c4 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| @@ -149,7 +149,7 @@ Node::InsertionNotificationRequest HTMLFormElement::insertedInto(ContainerNode*
|
| {
|
| HTMLElement::insertedInto(insertionPoint);
|
| logAddElementIfIsolatedWorldAndInDocument("form", methodAttr, actionAttr);
|
| - if (insertionPoint->inDocument())
|
| + if (insertionPoint->inShadowIncludingDocument())
|
| this->document().didAssociateFormControl(this);
|
| return InsertionDone;
|
| }
|
| @@ -605,7 +605,7 @@ const FormAssociatedElement::List& HTMLFormElement::associatedElements() const
|
| Node* scope = mutableThis;
|
| if (m_hasElementsAssociatedByParser)
|
| scope = &NodeTraversal::highestAncestorOrSelf(*mutableThis);
|
| - if (inDocument() && m_hasElementsAssociatedByFormAttribute)
|
| + if (inShadowIncludingDocument() && m_hasElementsAssociatedByFormAttribute)
|
| scope = &treeScope().rootNode();
|
| ASSERT(scope);
|
| collectAssociatedElements(*scope, mutableThis->m_associatedElements);
|
|
|