Fixing bug in the incremental layout notification code in the sink (no bug #). The sink context was calling DidAddContent() before decrementing the mInMonolithicContainer member in the sink if we were closing a monolithic container. This made the document never incrementally reflow changes after closing a monolithic container. Fix done by Vidur, sr=vidur@netscape.com/jst@netscape.com, r=harishd@netscape.com

git-svn-id: svn://10.0.0.236/trunk@88596 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com 2001-03-06 00:52:54 +00:00
parent 6e78b74479
commit 8a2f0eb79a

View File

@ -1525,12 +1525,12 @@ SinkContext::CloseContainer(const nsIParserNode& aNode)
mNotifyLevel = mStackPos-1;
}
DidAddContent(content, PR_FALSE);
if (mSink->IsMonolithicContainer(nodeType)) {
--mSink->mInMonolithicContainer;
}
DidAddContent(content, PR_FALSE);
// Special handling for certain tags
switch (nodeType) {