Bug 1403795 - Remove nsIDOMHTMLButtonElement; r=bz

Removes the XPCOM interface for nsIDOMHTMLButtonElement, replacing it
with binding class usage.

MozReview-Commit-ID: CzqRb7lI28W
This commit is contained in:
Kyle Machulis
2017-09-27 21:03:58 -07:00
parent d61d67d59f
commit 4dae9895ed
9 changed files with 48 additions and 100 deletions

View File

@@ -66,13 +66,13 @@
#include "nsIConstraintValidation.h"
#include "nsIDOMHTMLButtonElement.h"
#include "nsSandboxFlags.h"
#include "nsIContentSecurityPolicy.h"
// images
#include "mozilla/dom/HTMLImageElement.h"
#include "mozilla/dom/HTMLButtonElement.h"
// construction, destruction
NS_IMPL_NS_NEW_HTML_ELEMENT(Form)
@@ -1649,7 +1649,7 @@ HTMLFormElement::GetActionURL(nsIURI** aActionURL,
if (inputElement) {
inputElement->GetFormAction(action);
} else {
nsCOMPtr<nsIDOMHTMLButtonElement> buttonElement = do_QueryInterface(aOriginatingElement);
auto buttonElement = HTMLButtonElement::FromContent(aOriginatingElement);
if (buttonElement) {
buttonElement->GetFormAction(action);
} else {