Fixing bug 108651. Don't call nsIDocument::ContentAppended() if nothing was appended (when inserting an empty document fragment). r=harishd@netscape.com, rs=vidur@netscape.com

This commit is contained in:
jst%netscape.com 2001-11-07 00:11:36 +00:00
Родитель be20b21443
Коммит 7a0c525593
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -2445,7 +2445,7 @@ nsGenericElement::doInsertBefore(nsIDOMNode* aNewChild,
return res; return res;
} }
if (!do_notify && mDocument) { if (count && !do_notify && mDocument) {
mDocument->ContentAppended(this, old_count); mDocument->ContentAppended(this, old_count);
} }