Altered the tree structure so that the treerow tag is now obsolete.

This commit is contained in:
hyatt%netscape.com 1999-02-04 00:28:25 +00:00
parent 472593b2db
commit aae093350d
6 changed files with 3 additions and 13 deletions

View File

@ -55,7 +55,6 @@ public:
static nsIAtom* treehead; // The header of the tree view
static nsIAtom* treebody; // The body of the tree view
static nsIAtom* treeitem; // An item in the tree view
static nsIAtom* treerow; // A row in the tree view
static nsIAtom* treecell; // A cell in the tree view
static nsIAtom* treechildren; // The children of an item in the tree viw
static nsIAtom* treeindentation; // Specifies that the indentation for the level should occur here.

View File

@ -37,7 +37,6 @@ nsIAtom* nsXULAtoms::treecaption;
nsIAtom* nsXULAtoms::treehead;
nsIAtom* nsXULAtoms::treebody;
nsIAtom* nsXULAtoms::treeitem;
nsIAtom* nsXULAtoms::treerow;
nsIAtom* nsXULAtoms::treecell;
nsIAtom* nsXULAtoms::treechildren;
nsIAtom* nsXULAtoms::treeindentation;
@ -73,7 +72,6 @@ void nsXULAtoms::AddrefAtoms() {
treecaption = NS_NewAtom("treecaption");
treehead = NS_NewAtom("treehead");
treebody = NS_NewAtom("treebody");
treerow = NS_NewAtom("treerow");
treecell = NS_NewAtom("treecell");
treeitem = NS_NewAtom("treeitem");
treechildren = NS_NewAtom("treechildren");
@ -101,7 +99,6 @@ void nsXULAtoms::ReleaseAtoms() {
NS_RELEASE(treecaption);
NS_RELEASE(treehead);
NS_RELEASE(treebody);
NS_RELEASE(treerow);
NS_RELEASE(treecell);
NS_RELEASE(treeitem);
NS_RELEASE(treechildren);

View File

@ -202,11 +202,9 @@ nsTreeCellFrame::HandleDoubleClickEvent(nsIPresContext& aPresContext,
{
// Perform an expand/collapse
// Iterate up the chain to the row and then to the item.
nsCOMPtr<nsIContent> pRowContent;
nsCOMPtr<nsIContent> pTreeItemContent;
mContent->GetParent(*getter_AddRefs(pRowContent));
pRowContent->GetParent(*getter_AddRefs(pTreeItemContent));
mContent->GetParent(*getter_AddRefs(pTreeItemContent));
// Take the tree item content and toggle the value of its open attribute.
nsString attrValue;
nsCOMPtr<nsIAtom> kOpenAtom ( dont_AddRef(NS_NewAtom("open")) );

View File

@ -80,7 +80,7 @@ nsTreeIndentationFrame::Reflow(nsIPresContext& aPresContext,
pContent->GetTag(*getter_AddRefs(pTag));
if (pTag)
{
while (aFrame && pTag && pTag != nsXULAtoms::treerow)
while (aFrame && pTag && pTag != nsXULAtoms::treeitem)
{
aFrame->GetParent(aFrame);

View File

@ -37,7 +37,6 @@ nsIAtom* nsXULAtoms::treecaption;
nsIAtom* nsXULAtoms::treehead;
nsIAtom* nsXULAtoms::treebody;
nsIAtom* nsXULAtoms::treeitem;
nsIAtom* nsXULAtoms::treerow;
nsIAtom* nsXULAtoms::treecell;
nsIAtom* nsXULAtoms::treechildren;
nsIAtom* nsXULAtoms::treeindentation;
@ -73,7 +72,6 @@ void nsXULAtoms::AddrefAtoms() {
treecaption = NS_NewAtom("treecaption");
treehead = NS_NewAtom("treehead");
treebody = NS_NewAtom("treebody");
treerow = NS_NewAtom("treerow");
treecell = NS_NewAtom("treecell");
treeitem = NS_NewAtom("treeitem");
treechildren = NS_NewAtom("treechildren");
@ -101,7 +99,6 @@ void nsXULAtoms::ReleaseAtoms() {
NS_RELEASE(treecaption);
NS_RELEASE(treehead);
NS_RELEASE(treebody);
NS_RELEASE(treerow);
NS_RELEASE(treecell);
NS_RELEASE(treeitem);
NS_RELEASE(treechildren);

View File

@ -55,7 +55,6 @@ public:
static nsIAtom* treehead; // The header of the tree view
static nsIAtom* treebody; // The body of the tree view
static nsIAtom* treeitem; // An item in the tree view
static nsIAtom* treerow; // A row in the tree view
static nsIAtom* treecell; // A cell in the tree view
static nsIAtom* treechildren; // The children of an item in the tree viw
static nsIAtom* treeindentation; // Specifies that the indentation for the level should occur here.