mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 04:05:32 +00:00
Bug 406316, clear tree caches when setting attributes on tree or body, r+sr=neil,a=damon
This commit is contained in:
parent
825c9589a3
commit
1087182a5c
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user