summaryrefslogtreecommitdiff
path: root/dom/html
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-06-13 08:18:46 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-06-13 08:18:46 -0400
commit35754dd1af72abcae49edd2eeb76855d999a4e6d (patch)
tree7a9e52d0e3eb0148cfc9fe1e074c9c1b292f5289 /dom/html
parenta4c5e74b0b48ade0c1b50b3905670a9d86422453 (diff)
downloaduxp-35754dd1af72abcae49edd2eeb76855d999a4e6d.tar.gz
Bug 1355787 - nsIdentifierMapEntry should let one to use either strings or atoms as keys to avoid slow string assignments when possible.
Tag #1375
Diffstat (limited to 'dom/html')
-rw-r--r--dom/html/nsHTMLDocument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/html/nsHTMLDocument.cpp b/dom/html/nsHTMLDocument.cpp
index bd9de39f03..f3cb096b9a 100644
--- a/dom/html/nsHTMLDocument.cpp
+++ b/dom/html/nsHTMLDocument.cpp
@@ -2094,7 +2094,7 @@ nsHTMLDocument::GetSupportedNames(nsTArray<nsString>& aNames)
nsIdentifierMapEntry* entry = iter.Get();
if (entry->HasNameElement() ||
entry->HasIdElementExposedAsHTMLDocumentProperty()) {
- aNames.AppendElement(entry->GetKey());
+ aNames.AppendElement(entry->GetKeyAsString());
}
}
}