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

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: Rebase 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 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);

Powered by Google App Engine
This is Rietveld 408576698