Work in progress for frameset detection, bug 14599. r=cmanske

git-svn-id: svn://10.0.0.236/trunk@64664 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com
2000-03-31 01:57:28 +00:00
parent 8f069fdce5
commit 241fb296d5
4 changed files with 52 additions and 38 deletions

View File

@@ -48,12 +48,11 @@ nsEditorParserObserver::~nsEditorParserObserver()
NS_IMETHODIMP_(const char*) nsEditorParserObserver::GetTagNameAt(PRUint32 aTagIndex)
{
if (aTagIndex < gParserObserver_TagCount)
{
return gParserObserver_Tags[aTagIndex];
} else {
nsCString* theString = mWatchTags[aTagIndex];
if (theString)
return theString->GetBuffer();
else
return nsnull;
}
}
NS_IMETHODIMP nsEditorParserObserver::Notify(
@@ -121,4 +120,15 @@ NS_IMETHODIMP nsEditorParserObserver::GetBadTagFound(PRBool *aFound)
NS_ENSURE_ARG_POINTER(aFound);
*aFound = mBadTagFound;
return NS_OK;
}
}
NS_IMETHODIMP nsEditorParserObserver::RegisterTagToWatch(const char* tagName)
{
nsCString theTagString(tagName);
mWatchTags.AppendCString(theTagString);
return NS_OK;
}