Bug 678465 - 'document-element-inserted' doesn't fire on ImageDocument; r=bz

This commit is contained in:
Gabor Krizsanits
2011-12-15 15:10:36 +00:00
parent cedc6b6c10
commit d1e1ae9f59
7 changed files with 85 additions and 19 deletions

View File

@@ -233,23 +233,6 @@ nsHtml5TreeOperation::Append(nsIContent* aNode,
return rv;
}
class nsDocElementCreatedNotificationRunner : public nsRunnable
{
public:
nsDocElementCreatedNotificationRunner(nsIDocument* aDoc)
: mDoc(aDoc)
{
}
NS_IMETHOD Run()
{
nsContentSink::NotifyDocElementCreated(mDoc);
return NS_OK;
}
nsCOMPtr<nsIDocument> mDoc;
};
nsresult
nsHtml5TreeOperation::AppendToDocument(nsIContent* aNode,
nsHtml5TreeOpExecutor* aBuilder)