Bug 1728081 - Part 4: Make HTMLFormElement::GetDefaultSubmitElement return nsGenericHTMLFormElement; r=smaug

so that the callers don't need to queryInterface it back to nsIContent.

Differential Revision: https://phabricator.services.mozilla.com/D123952
This commit is contained in:
Edgar Chen
2021-08-30 18:44:51 +00:00
parent c791a38187
commit 82070f5956
4 changed files with 5 additions and 11 deletions

View File

@@ -54,7 +54,7 @@ class HTMLFormElement final : public nsGenericHTMLElement,
NS_DECL_ISUPPORTS_INHERITED
int32_t IndexOfControl(nsIFormControl* aControl);
nsIFormControl* GetDefaultSubmitElement() const;
nsGenericHTMLFormElement* GetDefaultSubmitElement() const;
// nsIRadioGroupContainer
void SetCurrentRadioButton(const nsAString& aName,