96364 - Register html tag observers directly to parser service rather than nsObserverService. Doing so, reduces a lot of overhead. Also, the observers are now notified via sink. This eliminates the need for parser bundle.
r=dp,shanjian,sfraser, sr=rpotts. git-svn-id: svn://10.0.0.236/trunk@104152 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -582,22 +582,6 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
|
||||
NS_PRECONDITION(nsnull != aContainer, "No content viewer container");
|
||||
nsCOMPtr<nsIDocShell> docShell(do_QueryInterface(aContainer));
|
||||
|
||||
if(mParser) {
|
||||
nsCOMPtr<nsISupportsParserBundle> parserBundle;
|
||||
nsresult result;
|
||||
|
||||
parserBundle = do_QueryInterface(mParser, &result);
|
||||
|
||||
if(NS_SUCCEEDED(result)) {
|
||||
// We do this to help consumers who don't have access to the webshell.
|
||||
nsAutoString theDocShell,theChannel;
|
||||
theDocShell.AssignWithConversion("docshell");
|
||||
theChannel.AssignWithConversion("channel");
|
||||
parserBundle->SetDataIntoBundle(theDocShell,docShell);
|
||||
parserBundle->SetDataIntoBundle(theChannel,aChannel);
|
||||
}
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDocumentCharsetInfo> dcInfo;
|
||||
docShell->GetDocumentCharsetInfo(getter_AddRefs(dcInfo));
|
||||
#ifdef IBMBIDI
|
||||
|
||||
Reference in New Issue
Block a user