mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Converting trees to XBL. Boosts tree scrolling performance.
This commit is contained in:
parent
83ec869665
commit
7c23a244e5
@ -1174,7 +1174,7 @@ treecell.propertylist {
|
||||
border-bottom: 1px solid #CCCCCC;
|
||||
}
|
||||
|
||||
treeitem > treerow > treecell > .tree-icon > .twisty {
|
||||
treeitem > treerow > treecell > .twisty {
|
||||
border: none;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
@ -1191,15 +1191,15 @@ treeitem > treerow > treecell > .tree-icon > .twisty {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
treeitem[empty="true"] > treerow > treecell > .tree-icon > titledbutton.twisty {
|
||||
treeitem[empty="true"] > treerow > treecell > titledbutton.twisty {
|
||||
list-style-image: none;
|
||||
}
|
||||
|
||||
treeitem > treerow > treecell > .tree-icon > .twisty[disabled="true"] {
|
||||
treeitem > treerow > treecell > .twisty[disabled="true"] {
|
||||
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");
|
||||
}
|
||||
|
||||
|
@ -204,6 +204,15 @@ treechildren {
|
||||
|
||||
treecell {
|
||||
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 {
|
||||
|
@ -29,5 +29,29 @@
|
||||
</content>
|
||||
</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>
|
||||
|
Loading…
Reference in New Issue
Block a user