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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user