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

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

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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/FormAssociatedElement.cpp
diff --git a/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp b/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp
index 3379b6fc8f054a278e18a527cbd3d9aceef9201d..90abfcfd62b85524261dd5d6963d18b03fad8639 100644
--- a/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp
+++ b/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp
@@ -119,7 +119,7 @@ HTMLFormElement* FormAssociatedElement::findAssociatedForm(const HTMLElement* el
// value is a form element, then associate the form-associated element
// with that form element.
// 3.2. Abort the "reset the form owner" steps.
- Element* newFormCandidate = element->treeScope().getElementById(formId);
+ Element* newFormCandidate = element->treeScopeOrDocument().getElementById(formId);
return isHTMLFormElement(newFormCandidate) ? toHTMLFormElement(newFormCandidate) : 0;
}
// 4. Otherwise, if the form-associated element in question has an ancestor
@@ -342,7 +342,7 @@ FormAttributeTargetObserver* FormAttributeTargetObserver::create(const AtomicStr
}
FormAttributeTargetObserver::FormAttributeTargetObserver(const AtomicString& id, FormAssociatedElement* element)
- : IdTargetObserver(toHTMLElement(element)->treeScope().idTargetObserverRegistry(), id)
+ : IdTargetObserver(toHTMLElement(element)->treeScopeOrDocument().idTargetObserverRegistry(), id)
, m_element(element)
{
}

Powered by Google App Engine
This is Rietveld 408576698