Bug 536893 - Asynchronous API for opening nsNavHistoryFolderResultNodes (part 2), r=mano

This commit is contained in:
Drew Willcoxon 2010-04-09 11:30:35 -07:00
parent 207fc62f9f
commit b660f0bb6a
4 changed files with 10 additions and 0 deletions

View File

@ -877,6 +877,9 @@
this.invalidateContainer(aNode);
},
containerStateChanged:
function PMV_containerStateChanged(aNode, aOldState, aNewState) {},
invalidateContainer: function PMV_invalidateContainer(aContainer) {
// Do nothing if the entire view is already marked un-built.
if (!this._self.parentNode._built)

View File

@ -736,6 +736,9 @@
this.invalidateContainer(aContainer);
},
containerStateChanged:
function TV_V_containerStateChanged(aNode, aOldState, aNewState) {},
invalidateContainer: function TV_V_invalidateContainer(aContainer) {
let containerNodeElt = aContainer._DOMElement;
NS_ASSERT(containerNodeElt, "node must have _DOMElement set");

View File

@ -848,6 +848,9 @@ PlacesTreeView.prototype = {
this.invalidateContainer(aNode);
},
containerStateChanged:
function PTV_containerStateChanged(aNode, aOldState, aNewState) {},
invalidateContainer: function PTV_invalidateContainer(aContainer) {
NS_ASSERT(this._result, "Need to have a result to update");
if (!this._tree)

View File

@ -108,6 +108,7 @@ var resultObserver = {
containerClosed: function(node) {
this.closedContainer = node;
},
containerStateChanged: function (node, oldState, newState) {},
invalidatedContainer: null,
invalidateContainer: function(node) {
this.invalidatedContainer = node;