Issue #1375 - Use nsIAtom* instead of nsAtom* for CE Upgrade function.

We haven't refactored nsIAtom* as Mozilla did yet.
This commit is contained in:
Job Bautista 2022-10-09 12:59:21 +08:00 • committed by roytam1
commit d367067698

View file

@ -799,7 +799,7 @@ TryUpgrade(nsINode& aNode)
CustomElementData* ceData = element->GetCustomElementData(); CustomElementData* ceData = element->GetCustomElementData();
if (ceData) { if (ceData) {
NodeInfo* nodeInfo = element->NodeInfo(); NodeInfo* nodeInfo = element->NodeInfo();
nsAtom* typeAtom = ceData->GetCustomElementType(); nsIAtom* typeAtom = ceData->GetCustomElementType();
CustomElementDefinition* definition = CustomElementDefinition* definition =
nsContentUtils::LookupCustomElementDefinition(nodeInfo->GetDocument(), nsContentUtils::LookupCustomElementDefinition(nodeInfo->GetDocument(),
nodeInfo->NameAtom(), nodeInfo->NameAtom(),