зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1452615 - Reduce unneeded AddRefing/Releasing when unregistering unresolved custom elements, r=emilio
--HG-- extra : rebase_source : e459aee935cf18fd2bda03a5ebe420b5288c8e9c
This commit is contained in:
Родитель
2fa8f7862f
Коммит
ddebcda430
|
@ -10140,7 +10140,7 @@ nsContentUtils::UnregisterUnresolvedElement(Element* aElement)
|
|||
{
|
||||
MOZ_ASSERT(aElement);
|
||||
|
||||
RefPtr<nsAtom> typeAtom =
|
||||
nsAtom* typeAtom =
|
||||
aElement->GetCustomElementData()->GetCustomElementType();
|
||||
nsIDocument* doc = aElement->OwnerDoc();
|
||||
nsPIDOMWindowInner* window(doc->GetInnerWindow());
|
||||
|
@ -10148,7 +10148,7 @@ nsContentUtils::UnregisterUnresolvedElement(Element* aElement)
|
|||
return;
|
||||
}
|
||||
|
||||
RefPtr<CustomElementRegistry> registry(window->CustomElements());
|
||||
CustomElementRegistry* registry = window->CustomElements();
|
||||
if (!registry) {
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче