зеркало из 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
|
// 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)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче