Bug 406316, clear tree caches when setting attributes on tree or body, r+sr=neil,a=damon

This commit is contained in:
enndeakin@sympatico.ca 2007-12-13 06:18:38 -08:00
Родитель 825c9589a3
Коммит 1087182a5c
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -809,6 +809,11 @@ nsTreeContentView::AttributeChanged(nsIDocument *aDocument,
// First check the tag to see if it's one that we care about.
nsIAtom *tag = aContent->Tag();
if (mBoxObject && (aContent == mRoot || aContent == mBody)) {
mBoxObject->ClearStyleAndImageCaches();
mBoxObject->Invalidate();
}
if (aContent->IsNodeOfType(nsINode::eXUL)) {
if (tag != nsGkAtoms::treecol &&
tag != nsGkAtoms::treeitem &&