From d49cfe7f066b45c0ecc338e542689828c3072a31 Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Mon, 14 Oct 2013 23:27:22 +0300 Subject: [PATCH] Bug 915210, follow the COM rules when flushing a presshell, r=bz --- layout/style/nsComputedDOMStyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/style/nsComputedDOMStyle.cpp b/layout/style/nsComputedDOMStyle.cpp index 7615dc8d1938..1f4e1597de30 100644 --- a/layout/style/nsComputedDOMStyle.cpp +++ b/layout/style/nsComputedDOMStyle.cpp @@ -418,7 +418,7 @@ nsComputedDOMStyle::GetStyleContextForElement(Element* aElement, // set. Using the pres shell from the content also means that any // content that's actually *in* a document will get the style from the // correct document. - nsIPresShell *presShell = GetPresShellForContent(aElement); + nsCOMPtr presShell = GetPresShellForContent(aElement); if (!presShell) { presShell = aPresShell; if (!presShell)