Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor
MozReview-Commit-ID: 202nkbmkwfR
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user