зеркало из https://github.com/mozilla/gecko-dev.git
Bug 915210, follow the COM rules when flushing a presshell, r=bz
This commit is contained in:
Родитель
9abde8f9b2
Коммит
d49cfe7f06
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче