Bug 915210, follow the COM rules when flushing a presshell, r=bz

This commit is contained in:
Olli Pettay 2013-10-14 23:27:22 +03:00
Родитель 9abde8f9b2
Коммит d49cfe7f06
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -418,7 +418,7 @@ nsComputedDOMStyle::GetStyleContextForElement(Element* aElement,
// set. Using the pres shell from the content also means that any // 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 // content that's actually *in* a document will get the style from the
// correct document. // correct document.
nsIPresShell *presShell = GetPresShellForContent(aElement); nsCOMPtr<nsIPresShell> presShell = GetPresShellForContent(aElement);
if (!presShell) { if (!presShell) {
presShell = aPresShell; presShell = aPresShell;
if (!presShell) if (!presShell)