330263 - off by one error for places drag and drop in tree views. r=brettw. Also a comment change to nsINavHistoryService.idl to improve documentation to prevent future bugs like this.

Original committer: beng%bengoodger.com
Original revision: 1.43
Original date: 2006/03/31 22:42:10
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 17:54:27 +00:00
Родитель 42d5a84022
Коммит 6aa5394ac8
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -604,6 +604,12 @@ interface nsINavHistoryResultTreeViewer : nsINavHistoryResultViewer
* Returns INDEX_INVISIBLE if the item is not visible (for example, its
* parent is collapsed). This is only valid when a tree is attached. The
* the result will always be INDEX_INVISIBLE if not.
*
* Note: This sounds sort of obvious, but it got me: aNode must be a node
* retrieved from the same result that this viewer is for. If you
* execute another query and get a node from a _different_ result, this
* function will always return the index of that node in the tree that
* is attached to that result.
*/
const PRUint32 INDEX_INVISIBLE = 0xffffffff;
PRUint32 treeIndexForNode(in nsINavHistoryResultNode aNode);