зеркало из https://github.com/mozilla/gecko-dev.git
Bug 30866. Be sure to pass the right content node to nsTreeRowGroupFrame::IndexInRow(). r=hyatt, a=jar
This commit is contained in:
Родитель
dd82316e1f
Коммит
cddacb3a2c
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче