Bug 1726393 - Part 2: Rename nsIFormControl::GetFormElement to GetForm; r=smaug

Depends on D122995

Differential Revision: https://phabricator.services.mozilla.com/D122996
This commit is contained in:
Edgar Chen
2021-08-19 09:20:24 +00:00
parent 47503d94d3
commit 685690e0c7
11 changed files with 14 additions and 16 deletions

View File

@@ -297,7 +297,7 @@ void HTMLFormElement::RequestSubmit(nsGenericHTMLElement* aSubmitter,
// 1.2. If submitter's form owner is not this form element, then throw a
// "NotFoundError" DOMException.
if (fc->GetFormElement() != this) {
if (fc->GetForm() != this) {
aRv.Throw(NS_ERROR_DOM_NOT_FOUND_ERR);
return;
}