Bug 30866. Be sure to pass the right content node to nsTreeRowGroupFrame::IndexInRow(). r=hyatt, a=jar

This commit is contained in:
waterson%netscape.com 2000-03-09 02:26:19 +00:00
Родитель dd82316e1f
Коммит cddacb3a2c
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -256,7 +256,13 @@ nsTreeFrame::HandleEvent(nsIPresContext* aPresContext,
nsCOMPtr<nsIDOMNode> node; nsCOMPtr<nsIDOMNode> node;
itemNodeList->Item(0, getter_AddRefs(node)); itemNodeList->Item(0, getter_AddRefs(node));
nsCOMPtr<nsIContent> content = do_QueryInterface(node); nsCOMPtr<nsIContent> content = do_QueryInterface(node);
treeRowGroup->IndexOfRow(aPresContext, content, rowIndex); nsTableRowFrame* firstRow=nsnull;
treeRowGroup->GetFirstRowFrame(&firstRow);
nsCOMPtr<nsIContent> rowContent;
if (firstRow) {
firstRow->GetContent(getter_AddRefs(rowContent));
treeRowGroup->IndexOfRow(aPresContext, rowContent, rowIndex);
}
} }
else if (cellLength != 0 && itemLength != 0) { else if (cellLength != 0 && itemLength != 0) {
nsCOMPtr<nsIDOMNode> node; nsCOMPtr<nsIDOMNode> node;