Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor

MozReview-Commit-ID: 202nkbmkwfR
This commit is contained in:
Boris Zbarsky
2018-03-21 17:39:04 -04:00
parent 522185dfd5
commit 152cd3ba6e
96 changed files with 273 additions and 275 deletions

View File

@@ -631,13 +631,13 @@ nsHtml5TreeOperation::SetFormElement(nsIContent* aNode, nsIContent* aParent)
{
nsCOMPtr<nsIFormControl> formControl(do_QueryInterface(aNode));
RefPtr<dom::HTMLImageElement> domImageElement =
dom::HTMLImageElement::FromContentOrNull(aNode);
dom::HTMLImageElement::FromNodeOrNull(aNode);
// NS_ASSERTION(formControl, "Form-associated element did not implement
// nsIFormControl.");
// TODO: uncomment the above line when <keygen> (bug 101019) is supported by
// Gecko
RefPtr<dom::HTMLFormElement> formElement =
dom::HTMLFormElement::FromContentOrNull(aParent);
dom::HTMLFormElement::FromNodeOrNull(aParent);
NS_ASSERTION(formElement,
"The form element doesn't implement HTMLFormElement.");
// avoid crashing on <keygen>