Converting trees to XBL. Boosts tree scrolling performance.

This commit is contained in:
hyatt%netscape.com 2000-02-15 09:27:21 +00:00
parent 83ec869665
commit 7c23a244e5
3 changed files with 38 additions and 5 deletions

View File

@ -1174,7 +1174,7 @@ treecell.propertylist {
border-bottom: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;
} }
treeitem > treerow > treecell > .tree-icon > .twisty { treeitem > treerow > treecell > .twisty {
border: none; border: none;
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
@ -1191,15 +1191,15 @@ treeitem > treerow > treecell > .tree-icon > .twisty {
text-decoration: none; text-decoration: none;
} }
treeitem[empty="true"] > treerow > treecell > .tree-icon > titledbutton.twisty { treeitem[empty="true"] > treerow > treecell > titledbutton.twisty {
list-style-image: none; list-style-image: none;
} }
treeitem > treerow > treecell > .tree-icon > .twisty[disabled="true"] { treeitem > treerow > treecell > .twisty[disabled="true"] {
list-style-image: none; list-style-image: none;
} }
treeitem[container="true"][open="true"] > treerow > treecell > .tree-icon > .twisty { treeitem[container="true"][open="true"] > treerow > treecell > .twisty {
list-style-image: url("chrome://global/skin/opentwisty.gif"); list-style-image: url("chrome://global/skin/opentwisty.gif");
} }

View File

@ -204,6 +204,15 @@ treechildren {
treecell { treecell {
display: table-cell; display: table-cell;
behavior: url("resource:/chrome/xulBindings.xml#treecell");
}
treecell[indent="true"] {
behavior: url("resource:/chrome/xulBindings.xml#treecell-indented-leaf");
}
treeitem[container="true"] > treerow > treecell[indent="true"] {
behavior: url("resource:/chrome/xulBindings.xml#treecell-indented-folder");
} }
treeitem > treechildren { treeitem > treechildren {

View File

@ -29,5 +29,29 @@
</content> </content>
</binding> </binding>
<binding name="treecell-indented-folder">
<content>
<xul:treeindentation/>
<xul:titledbutton class="twisty" allowevents="true"/>
<xul:titledbutton class="tree-icon tree-button" inherits="crop,value,align,src"
flex="1" align="left" crop="right"/>
</content>
</binding>
<binding name="treecell-indented-leaf">
<content>
<xul:treeindentation/>
<xul:titledbutton class="twisty" disabled="true" allowevents="true"/>
<xul:titledbutton class="tree-icon tree-button" inherits="crop,value,align,src"
flex="1" align="left" crop="right"/>
</content>
</binding>
<binding name="treecell">
<content>
<xul:titledbutton class="tree-button" inherits="crop,value,align,src"
flex="1" align="left" crop="right"/>
</content>
</binding>
</bindings> </bindings>