зеркало из https://github.com/mozilla/gecko-dev.git
272059 fix whitespace in tree.xml, and document obsolete-ness of builderView and
contentView r+sr=neil
This commit is contained in:
Родитель
357214d9ae
Коммит
34c7c1e80b
|
@ -66,9 +66,11 @@
|
||||||
<property name="treeBoxObject"
|
<property name="treeBoxObject"
|
||||||
onget="return this.boxObject.QueryInterface(Components.interfaces.nsITreeBoxObject);"
|
onget="return this.boxObject.QueryInterface(Components.interfaces.nsITreeBoxObject);"
|
||||||
readonly="true"/>
|
readonly="true"/>
|
||||||
|
<!-- contentView is obsolete (see bug 202391) -->
|
||||||
<property name="contentView"
|
<property name="contentView"
|
||||||
onget="return this.view; /*.QueryInterface(Components.interfaces.nsITreeContentView)*/"
|
onget="return this.view; /*.QueryInterface(Components.interfaces.nsITreeContentView)*/"
|
||||||
readonly="true"/>
|
readonly="true"/>
|
||||||
|
<!-- builderView is obsolete (see bug 202393) -->
|
||||||
<property name="builderView"
|
<property name="builderView"
|
||||||
onget="return this.view; /*.QueryInterface(Components.interfaces.nsIXULTreeBuilder)*/"
|
onget="return this.view; /*.QueryInterface(Components.interfaces.nsIXULTreeBuilder)*/"
|
||||||
readonly="true"/>
|
readonly="true"/>
|
||||||
|
@ -277,6 +279,7 @@
|
||||||
this.treeBoxObject.scrollByLines(-1);
|
this.treeBoxObject.scrollByLines(-1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var c = this.currentIndex;
|
var c = this.currentIndex;
|
||||||
if (c == -1 || c == 0)
|
if (c == -1 || c == 0)
|
||||||
return;
|
return;
|
||||||
|
@ -436,7 +439,7 @@
|
||||||
</handler>
|
</handler>
|
||||||
<handler event="keypress" keycode="vk_end" modifiers="control any">
|
<handler event="keypress" keycode="vk_end" modifiers="control any">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
var l = this.view.rowCount - 1;
|
var l = this.view.rowCount - 1;
|
||||||
if (l < 0)
|
if (l < 0)
|
||||||
return;
|
return;
|
||||||
// Normal behaviour is to select the last row
|
// Normal behaviour is to select the last row
|
||||||
|
@ -461,7 +464,7 @@
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
if (this.view.selection.single)
|
if (this.view.selection.single)
|
||||||
return;
|
return;
|
||||||
var l = this.view.rowCount - 1;
|
var l = this.view.rowCount - 1;
|
||||||
// Extend the selection from the existing pivot, if any
|
// Extend the selection from the existing pivot, if any
|
||||||
this.view.selection.rangedSelect(-1, l, event.ctrlKey);
|
this.view.selection.rangedSelect(-1, l, event.ctrlKey);
|
||||||
this.treeBoxObject.ensureRowIsVisible(l);
|
this.treeBoxObject.ensureRowIsVisible(l);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче