From 84e9484ae98cc5bbde5edd374da0e7570d104274 Mon Sep 17 00:00:00 2001 From: "caillon%returnzero.com" Date: Sat, 26 Apr 2003 21:38:53 +0000 Subject: [PATCH] 182099 - lock up on stylesheets tab double-clicking the twisty r=varga, sr=bzbarsky, a=sspitzer git-svn-id: svn://10.0.0.236/trunk@141859 18797224-902f-48f8-a5cc-f745e15eee43 --- .../resources/content/viewers/stylesheets/stylesheets.js | 2 +- mozilla/layout/xul/base/src/tree/public/nsITreeView.idl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/extensions/inspector/resources/content/viewers/stylesheets/stylesheets.js b/mozilla/extensions/inspector/resources/content/viewers/stylesheets/stylesheets.js index 073db63deb8..faa6c373552 100644 --- a/mozilla/extensions/inspector/resources/content/viewers/stylesheets/stylesheets.js +++ b/mozilla/extensions/inspector/resources/content/viewers/stylesheets/stylesheets.js @@ -238,7 +238,7 @@ function(aRow) if (this.mLevels[i] < baseLevel) return i; } - return 0; + return -1; } StyleSheetsView.prototype.hasNextSibling = diff --git a/mozilla/layout/xul/base/src/tree/public/nsITreeView.idl b/mozilla/layout/xul/base/src/tree/public/nsITreeView.idl index ded1186b717..dc752a85a0d 100644 --- a/mozilla/layout/xul/base/src/tree/public/nsITreeView.idl +++ b/mozilla/layout/xul/base/src/tree/public/nsITreeView.idl @@ -116,7 +116,8 @@ interface nsITreeView : nsISupports /** * Methods used by the tree to draw vertical lines in the tree. - * GetParentIndex is used to obtain the index of a parent row. + * getParentIndex is used to obtain the index of a parent row. + * If there is no parent row, getParentIndex returns -1. */ long getParentIndex(in long rowIndex);