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

This commit is contained in:
Gabor Krizsanits
2011-09-22 17:35:25 +01:00
parent 4b1e2d2904
commit 44b682e438
3 changed files with 21 additions and 17 deletions

View File

@@ -228,23 +228,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)