From ecbf2e2cf2092335933d40688018f797d47b0258 Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Mon, 9 Apr 2018 15:48:53 +0300 Subject: [PATCH] Bug 1452608 - Reduce unneeded AddRefing/Releasing when looking up custom element definitions, r=emilio --- dom/base/nsContentUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index 1ab2d92bfe91..06929a12093f 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -10103,12 +10103,12 @@ nsContentUtils::LookupCustomElementDefinition(nsIDocument* aDoc, return nullptr; } - nsCOMPtr window(aDoc->GetInnerWindow()); + nsPIDOMWindowInner* window = aDoc->GetInnerWindow(); if (!window) { return nullptr; } - RefPtr registry(window->CustomElements()); + CustomElementRegistry* registry = window->CustomElements(); if (!registry) { return nullptr; }