Hello,
The fix of bug
1906015 introduced `nsIFormControl::FromNode
`,
`nsIFormControl::FromNodeOrNull
`, `nsIFormControl::FromEventTarget
`
and `nsIFormControl::FromEventTargetOrNull
`.
Therefore, you don't need to do like this:
const nsCOMPtr<nsIFormControl> formControl = do_QueryInterface(aNode->GetFirstChild());
Instead, you can do:
nsIFormControl* const formControl = nsIFormControl::FromNodeOrNull(aNode->GetFirstChild());
The utilities are faster and make you free from using strong
pointer.
-- Masayuki Nakano <masa...@d-toybox.com> Working on DOM, Events, editor and IME handling for Gecko