From 0eb47518f5bda3283c75832478dd94eb77758a8d Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Thu, 31 Aug 2006 03:22:36 +0000 Subject: [PATCH] Fix crash bug 349398, r+sr=sicking --- layout/inspector/src/inDOMView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/inspector/src/inDOMView.cpp b/layout/inspector/src/inDOMView.cpp index fdc0d044272..ee7d78437ec 100644 --- a/layout/inspector/src/inDOMView.cpp +++ b/layout/inspector/src/inDOMView.cpp @@ -400,8 +400,7 @@ inDOMView::GetCellProperties(PRInt32 row, nsITreeColumn* col, nsISupportsArray * NS_ENSURE_TRUE(accService, NS_ERROR_FAILURE); nsCOMPtr accessible; - nsresult rv = accService->GetAccessibleFor(node->node, - getter_AddRefs(accessible)); + accService->GetAccessibleFor(node->node, getter_AddRefs(accessible)); if (accessible) properties->AppendElement(kAccessibleNodeAtom); } @@ -944,7 +943,8 @@ inDOMView::ContentRemoved(nsIDocument *aDocument, nsIContent* aContainer, nsICon RemoveLink(oldNode); RemoveNode(row); - if (aContainer->GetChildCount() == 0) { + nsINode* container = NODE_FROM(aContainer, aDocument); + if (container->GetChildCount() == 0) { // Fix up the parent parentNode->isContainer = PR_FALSE; parentNode->isOpen = PR_FALSE;