Bug 1385324 - Part 2: Rewrite HTMLFormControlsCollection::GetSortedControls() to use RefPtr instead of raw pointers; r=qdot

This commit is contained in:
Ehsan Akhgari
2017-07-28 11:38:26 -04:00
parent 2e56acd1d6
commit b04faac567
4 changed files with 35 additions and 26 deletions

View File

@@ -261,7 +261,7 @@ HTMLFormControlsCollection::RemoveElementFromTable(
nsresult
HTMLFormControlsCollection::GetSortedControls(
nsTArray<nsGenericHTMLFormElement*>& aControls) const
nsTArray<RefPtr<nsGenericHTMLFormElement>>& aControls) const
{
#ifdef DEBUG
HTMLFormElement::AssertDocumentOrder(mElements, mForm);