Bug 1729008 - Part 1: Make HTMLFormElement::IsDefaultSubmitElement take nsGenericHTMLFormElement as argument; r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D124459
This commit is contained in:
Edgar Chen
2021-09-03 17:21:44 +00:00
parent 910ec0e5e9
commit 2f052986f8
2 changed files with 12 additions and 12 deletions

View File

@@ -207,13 +207,13 @@ class HTMLFormElement final : public nsGenericHTMLElement,
bool IsLastActiveElement(const nsIFormControl* aControl) const;
/**
* Check whether a given nsIFormControl is the default submit
* Check whether a given nsGenericHTMLFormElement is the default submit
* element. This is different from just comparing to
* GetDefaultSubmitElement() in certain situations inside an update
* when GetDefaultSubmitElement() might not be up to date. aControl
* when GetDefaultSubmitElement() might not be up to date. aElement
* is expected to not be null.
*/
bool IsDefaultSubmitElement(const nsIFormControl* aControl) const;
bool IsDefaultSubmitElement(const nsGenericHTMLFormElement* aElement) const;
/**
* Flag the form to know that a button or image triggered scripted form