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

This commit is contained in:
jst%netscape.com 2001-03-06 00:52:54 +00:00
Родитель c2ffe7fa93
Коммит fd3dbdee7e
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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) {