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
// content that's actually *in* a document will get the style from the
// correct document.
nsIPresShell *presShell = GetPresShellForContent(aElement);
nsCOMPtr<nsIPresShell> presShell = GetPresShellForContent(aElement);
if (!presShell) {
presShell = aPresShell;
if (!presShell)