зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1452608 - Reduce unneeded AddRefing/Releasing when looking up custom element definitions, r=emilio
This commit is contained in:
Родитель
377b1b9417
Коммит
ecbf2e2cf2
|
@ -10103,12 +10103,12 @@ nsContentUtils::LookupCustomElementDefinition(nsIDocument* aDoc,
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsPIDOMWindowInner> window(aDoc->GetInnerWindow());
|
||||
nsPIDOMWindowInner* window = aDoc->GetInnerWindow();
|
||||
if (!window) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
RefPtr<CustomElementRegistry> registry(window->CustomElements());
|
||||
CustomElementRegistry* registry = window->CustomElements();
|
||||
if (!registry) {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче