Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: third_party/WebKit/Source/core/html/HTMLFormElement.cpp

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698