Bug 1263785 - Kill off the deprecated nsINode::GetCurrentDoc. r=baku

This commit is contained in:
Jonathan Watt
2016-03-31 12:46:32 +01:00
parent d714197cfc
commit 947f9705a7
53 changed files with 91 additions and 99 deletions

View File

@@ -472,7 +472,7 @@ GetPresShellForContent(nsIDOMNode* aDOMNode)
if (!content)
return nullptr;
nsCOMPtr<nsIDocument> document = content->GetCurrentDoc();
nsCOMPtr<nsIDocument> document = content->GetUncomposedDoc();
if (document) {
document->FlushPendingNotifications(Flush_Display);