зеркало из https://github.com/mozilla/gecko-dev.git
Fix for 48931, r=danm,scc
This commit is contained in:
Родитель
b23158d4f2
Коммит
4e565e1d33
|
@ -141,9 +141,11 @@ struct nsXBLBindingRequest
|
|||
|
||||
nsCOMPtr<nsIPresShell> shell = getter_AddRefs(doc->GetShellAt(0));
|
||||
if (shell) {
|
||||
nsIFrame* childFrame;
|
||||
shell->GetPrimaryFrameFor(mBoundElement, &childFrame);
|
||||
nsCOMPtr<nsIDocumentObserver> obs(do_QueryInterface(shell));
|
||||
obs->ContentRemoved(doc, parent, mBoundElement, index);
|
||||
obs->ContentInserted(doc, parent, mBoundElement, index);
|
||||
if (!childFrame)
|
||||
obs->ContentInserted(doc, parent, mBoundElement, index);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -141,9 +141,11 @@ struct nsXBLBindingRequest
|
|||
|
||||
nsCOMPtr<nsIPresShell> shell = getter_AddRefs(doc->GetShellAt(0));
|
||||
if (shell) {
|
||||
nsIFrame* childFrame;
|
||||
shell->GetPrimaryFrameFor(mBoundElement, &childFrame);
|
||||
nsCOMPtr<nsIDocumentObserver> obs(do_QueryInterface(shell));
|
||||
obs->ContentRemoved(doc, parent, mBoundElement, index);
|
||||
obs->ContentInserted(doc, parent, mBoundElement, index);
|
||||
if (!childFrame)
|
||||
obs->ContentInserted(doc, parent, mBoundElement, index);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче