Bug 1512474, repaint arrow when certificate item in tree is opened or closed, r=mconley
authorNeil Deakin <neil@mozilla.com>
Thu, 07 Mar 2019 17:57:24 -0500
changeset 520881 5e8cc2d02203362b91e84197585de9a82eeeff64
parent 520880 bcc72374b769d03abf6eb717dcccec843066284b
child 520882 13db12a097dfdcf56704ddc1845403207891b013
child 520996 4e0be3b764e698c64679c58244bbc694c009eaeb
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1512474
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1512474, repaint arrow when certificate item in tree is opened or closed, r=mconley
security/manager/ssl/nsCertTree.cpp
--- a/security/manager/ssl/nsCertTree.cpp
+++ b/security/manager/ssl/nsCertTree.cpp
@@ -1006,17 +1006,20 @@ nsCertTree::SetTree(mozilla::dom::XULTre
 
 NS_IMETHODIMP
 nsCertTree::ToggleOpenState(int32_t index) {
   if (!mTreeArray) return NS_ERROR_NOT_INITIALIZED;
   treeArrayEl *el = GetThreadDescAtIndex(index);
   if (el) {
     el->open = !el->open;
     int32_t newChildren = (el->open) ? el->numChildren : -el->numChildren;
-    if (mTree) mTree->RowCountChanged(index + 1, newChildren);
+    if (mTree) {
+      mTree->RowCountChanged(index + 1, newChildren);
+      mTree->InvalidateRow(index);
+    }
   }
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsCertTree::CycleHeader(nsTreeColumn *col) { return NS_OK; }
 
 NS_IMETHODIMP