Bug 1691913 - Add some convenience methods to LookupResult and EntryHandle. r=xpcom-reviewers,nika

Differential Revision: https://phabricator.services.mozilla.com/D105475
This commit is contained in:
Simon Giesecke
2021-03-01 09:59:29 +00:00
parent 8106d184d2
commit d4b20a96d1
14 changed files with 52 additions and 26 deletions

View File

@@ -1453,7 +1453,7 @@ nsresult HTMLFormElement::RemoveElementFromTableInternal(
// If it's not a content node then it must be a RadioNodeList.
MOZ_ASSERT(nsCOMPtr<RadioNodeList>(do_QueryInterface(entry.Data())));
auto* list = static_cast<RadioNodeList*>(entry.Data().get());
auto* list = static_cast<RadioNodeList*>(entry->get());
list->RemoveElement(aChild);
@@ -2293,7 +2293,7 @@ nsresult HTMLFormElement::AddElementToTableInternal(
} else {
// There's already a list in the hash, add the child to the list.
MOZ_ASSERT(nsCOMPtr<RadioNodeList>(do_QueryInterface(entry.Data())));
auto* list = static_cast<RadioNodeList*>(entry.Data().get());
auto* list = static_cast<RadioNodeList*>(entry->get());
NS_ASSERTION(
list->Length() > 1,