| 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)
|
| {
|
| }
|
|
|