Removed the hack,in the sink, to limit nesting depth. This now

happens in the parser.

r=rickg/jst


git-svn-id: svn://10.0.0.236/trunk@78904 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2000-09-12 21:18:50 +00:00
parent f513e653c1
commit 3bc6fee424
2 changed files with 0 additions and 32 deletions

View File

@@ -477,7 +477,6 @@ public:
PRUnichar* mText;
PRInt32 mTextLength;
PRInt32 mTextSize;
PRInt32 mIgnoredOpenCount;
};
//----------------------------------------------------------------------
@@ -1158,7 +1157,6 @@ SinkContext::SinkContext(HTMLContentSink* aSink)
mTextSize = 0;
mLastTextNode = nsnull;
mLastTextNodeSize = 0;
mIgnoredOpenCount = 0;
}
SinkContext::~SinkContext()
@@ -1297,13 +1295,6 @@ SinkContext::OpenContainer(const nsIParserNode& aNode)
SINK_TRACE_NODE(SINK_TRACE_CALLS,
"SinkContext::OpenContainer", aNode, mStackPos, mSink);
// XXX - Hack to handle stack over flow ( Bug 18480 )
if (mStackPos > 1000) {
mIgnoredOpenCount++;
return AddLeaf(aNode);
}
// XXX - Hack Ends
nsresult rv;
if (mStackPos + 1 > mStackSize) {
rv = GrowStack();
@@ -1405,13 +1396,6 @@ SinkContext::CloseContainer(const nsIParserNode& aNode)
{
nsresult result = NS_OK;
// XXX - Hack to handle stack over flow ( Bug 18480 )
if (mIgnoredOpenCount) {
mIgnoredOpenCount--;
return NS_OK;
}
// XXX -Hack Ends.
// Flush any collected text content. Release the last text
// node to indicate that no more should be added to it.
FlushTextAndRelease();