Prevent charset loading for document.write content because the content is already in unicode. b=125317, r=ftang, sr=jst

git-svn-id: svn://10.0.0.236/trunk@119320 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2002-04-18 22:11:17 +00:00
parent 765b24766c
commit c996b9fb65
16 changed files with 56 additions and 23 deletions

View File

@@ -61,6 +61,7 @@ class nsIElementObserver : public nsISupports {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IELEMENTOBSERVER_IID; return iid; }
enum { IS_DOCUMENT_WRITE = 1U };
/*
* Subject call observer when the parser hit the tag
* @param aDocumentID- ID of the document
@@ -81,7 +82,8 @@ public:
nsISupports* aChannel,
const PRUnichar* aTag,
const nsStringArray* aKeys,
const nsStringArray* aValues) = 0;
const nsStringArray* aValues,
const PRUint32 aFlags) = 0;
};

View File

@@ -62,7 +62,8 @@ class nsIObserverEntry : public nsISupports {
NS_IMETHOD Notify(nsIParserNode* aNode,
nsIParser* aParser,
nsISupports* aWebShell) = 0;
nsISupports* aWebShell,
const PRUint32 aFlags) = 0;
};

View File

@@ -1523,7 +1523,8 @@ nsObserverEntry::~nsObserverEntry() {
NS_IMETHODIMP
nsObserverEntry::Notify(nsIParserNode* aNode,
nsIParser* aParser,
nsISupports* aWebShell)
nsISupports* aWebShell,
const PRUint32 aFlags)
{
NS_ENSURE_ARG_POINTER(aNode);
NS_ENSURE_ARG_POINTER(aParser);
@@ -1573,7 +1574,7 @@ nsObserverEntry::Notify(nsIParserNode* aNode,
if (observer) {
result = observer->Notify(aWebShell, channel,
nsHTMLTags::GetStringValue(theTag),
&keys, &values);
&keys, &values, aFlags);
if (NS_FAILED(result)) {
break;
}

View File

@@ -571,7 +571,8 @@ public:
NS_IMETHOD Notify(nsIParserNode* aNode,
nsIParser* aParser,
nsISupports* aWebShell);
nsISupports* aWebShell,
const PRUint32 aFlags);
nsresult AddObserver(nsIElementObserver* aObserver,eHTMLTags aTag);
void RemoveObserver(nsIElementObserver* aObserver);