| 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 16a06787f2d8465b1cf28ee6bf1230596c958685..884e6f52e3341093c8b4d2e17a61439e78499f07 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
| @@ -151,7 +151,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;
|
| }
|
| @@ -607,7 +607,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);
|
|
|