summaryrefslogtreecommitdiff
path: root/dom/base/nsContentUtils.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-25 09:14:03 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:52 -0500
commit2aee067ed7bf9ae3ea5021c6e39e78def314ec84 (patch)
treefb5b7a509abe61a05bf6f3f88371271be4e5ccaa /dom/base/nsContentUtils.h
parentc192c26380a10006c71b6f3c95ac14962f469cef (diff)
downloaduxp-2aee067ed7bf9ae3ea5021c6e39e78def314ec84.tar.gz
Bug 1430951 - Avoid element name atomizing to improve performance of LookupCustomElementDefinition
Since we are dealing with the element (nodeInfo->LocalName() and NameAtom() are the same value), we could use nodeInfo->NameAtom() instead. Tag UXP Issue mcp-graveyard/UXP#1344
Diffstat (limited to 'dom/base/nsContentUtils.h')
-rw-r--r--dom/base/nsContentUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/base/nsContentUtils.h b/dom/base/nsContentUtils.h
index 4200a06213..bf6a59dcd9 100644
--- a/dom/base/nsContentUtils.h
+++ b/dom/base/nsContentUtils.h
@@ -2712,7 +2712,7 @@ public:
*/
static mozilla::dom::CustomElementDefinition*
LookupCustomElementDefinition(nsIDocument* aDoc,
- const nsAString& aLocalName,
+ nsIAtom* aNameAtom,
uint32_t aNameSpaceID,
nsIAtom* aTypeAtom);