зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1182976 follow-up: Address njn's drive-by comment
This commit is contained in:
Родитель
017f50b6d7
Коммит
698096b26d
|
@ -2323,9 +2323,10 @@ void
|
|||
nsHTMLDocument::GetSupportedNames(unsigned, nsTArray<nsString>& aNames)
|
||||
{
|
||||
for (auto iter = mIdentifierMap.Iter(); !iter.Done(); iter.Next()) {
|
||||
if (iter.Get()->HasNameElement() ||
|
||||
iter.Get()->HasIdElementExposedAsHTMLDocumentProperty()) {
|
||||
aNames.AppendElement(iter.Get()->GetKey());
|
||||
nsIdentifierMapEntry* entry = iter.Get();
|
||||
if (entry->HasNameElement() ||
|
||||
entry->HasIdElementExposedAsHTMLDocumentProperty()) {
|
||||
aNames.AppendElement(entry->GetKey());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче