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

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

Issue 23890025: WIP (Introduce WTF::NonNullPtr<T>.) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/core/editing/htmlediting.cpp ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/FormAssociatedElement.cpp
diff --git a/Source/core/html/FormAssociatedElement.cpp b/Source/core/html/FormAssociatedElement.cpp
index e800826d4fb7ac47a934c4b5717ec454268ce4c8..4ef42ffe0cbbf8f79b38caaab9ad6ee173ed38ea 100644
--- a/Source/core/html/FormAssociatedElement.cpp
+++ b/Source/core/html/FormAssociatedElement.cpp
@@ -107,7 +107,7 @@ HTMLFormElement* FormAssociatedElement::findAssociatedForm(const HTMLElement* el
// the value of form attribute, so we put the result of
// treeScope()->getElementById() over the given element.
HTMLFormElement* newForm = 0;
- Element* newFormCandidate = element->treeScope().getElementById(formId);
+ Element* newFormCandidate = element->treeScope()->getElementById(formId);
if (newFormCandidate && newFormCandidate->hasTagName(formTag))
newForm = toHTMLFormElement(newFormCandidate);
return newForm;
@@ -293,7 +293,7 @@ PassOwnPtr<FormAttributeTargetObserver> FormAttributeTargetObserver::create(cons
}
FormAttributeTargetObserver::FormAttributeTargetObserver(const AtomicString& id, FormAssociatedElement* element)
- : IdTargetObserver(toHTMLElement(element)->treeScope().idTargetObserverRegistry(), id)
+ : IdTargetObserver(toHTMLElement(element)->treeScope()->idTargetObserverRegistry(), id)
, m_element(element)
{
}
« no previous file with comments | « Source/core/editing/htmlediting.cpp ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698