bug 142771: Fix ScanDocStructure to be more correct in marking tokens as malformed. r=bzbarsky sr=rbs. These files were left out of the original checkin

This commit is contained in:
mrbkap%gmail.com 2005-01-20 03:43:42 +00:00
Родитель c50271ee74
Коммит 4983b3b3ef
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -146,7 +146,9 @@ public:
// the following info is used to set well-formedness state on start tags...
virtual eContainerInfo GetContainerInfo(void) const {return mContainerInfo;}
virtual void SetContainerInfo(eContainerInfo aContainerInfo) {
mContainerInfo=aContainerInfo;
if (eFormUnknown==mContainerInfo) {
mContainerInfo=aContainerInfo;
}
}
virtual PRBool IsWellFormed(void) const {
return eWellFormed == mContainerInfo;

Просмотреть файл

@ -98,6 +98,9 @@ protected:
nsDeque mTokenDeque;
PRPackedBool mIsFinalChunk;
nsTokenAllocator* mTokenAllocator;
// This variable saves the position of the last tag we inspected in
// ScanDocStructure. We start scanning the general well-formedness of the
// document starting at this position each time.
PRInt32 mTokenScanPos;
PRUint32 mFlags;
};