From 01d79b4190a32dd91c75785b386dca0265c0ba45 Mon Sep 17 00:00:00 2001 From: "hewitt%netscape.com" Date: Thu, 15 Nov 2001 05:09:26 +0000 Subject: [PATCH] DOM Inspector update - tons of crash fixes, js error fixes, performance and usability improvements, r=jag, sr=hyatt git-svn-id: svn://10.0.0.236/trunk@108147 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/inspector/base/src/inDOMView.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mozilla/extensions/inspector/base/src/inDOMView.cpp b/mozilla/extensions/inspector/base/src/inDOMView.cpp index 2c4681f3844..c40d0ab8095 100644 --- a/mozilla/extensions/inspector/base/src/inDOMView.cpp +++ b/mozilla/extensions/inspector/base/src/inDOMView.cpp @@ -77,10 +77,10 @@ public: inDOMViewNode::inDOMViewNode(nsIDOMNode* aNode) : node(aNode), - level(0), parent(nsnull), next(nsnull), previous(nsnull), + level(0), isOpen(PR_FALSE), isContainer(PR_FALSE), hasAnonymous(PR_FALSE), @@ -110,8 +110,8 @@ nsIAtom* inDOMView::kDocumentFragmentNodeAtom = nsnull; nsIAtom* inDOMView::kNotationNodeAtom = nsnull; inDOMView::inDOMView() : - mShowSubDocuments(PR_FALSE), mShowAnonymous(PR_FALSE), + mShowSubDocuments(PR_FALSE), mFilters(65535) // show all node types by default { @@ -849,7 +849,6 @@ inDOMView::ContentRemoved(nsIDocument *aDocument, nsIContent* aContainer, nsICon if (NS_FAILED(rv = RowToNode(row, &oldNode))) return rv; - PRInt32 oldRowCount = GetRowCount(); if (oldNode->isOpen) CollapseNode(row); @@ -1008,8 +1007,6 @@ inDOMView::CollapseNode(PRInt32 aRow) inDOMViewNode* node = nsnull; RowToNode(aRow, &node); - PRUint32 ourLevel = node->level; - PRInt32 row = 0; GetLastDescendantOf(node, aRow, &row);