зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1159938 - Remove dead nodeChanged() function;r=pbrosset
This commit is contained in:
Родитель
df4762e426
Коммит
b7e941ff01
|
@ -500,9 +500,9 @@ MarkupView.prototype = {
|
|||
} else {
|
||||
let node = this._selectedContainer.node;
|
||||
if (node.hidden) {
|
||||
this.walker.unhideNode(node).then(() => this.nodeChanged(node));
|
||||
this.walker.unhideNode(node);
|
||||
} else {
|
||||
this.walker.hideNode(node).then(() => this.nodeChanged(node));
|
||||
this.walker.hideNode(node);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -1205,15 +1205,6 @@ MarkupView.prototype = {
|
|||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Called when the markup panel initiates a change on a node.
|
||||
*/
|
||||
nodeChanged: function(aNode) {
|
||||
if (aNode === this._inspector.selection.nodeFront) {
|
||||
this._inspector.change("markupview");
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Check if the current selection is a descendent of the container.
|
||||
* if so, make sure it's among the visible set for the container,
|
||||
|
@ -2273,13 +2264,9 @@ function TextEditor(aContainer, aNode, aTemplate) {
|
|||
longstr.release().then(null, console.error);
|
||||
|
||||
this.container.undo.do(() => {
|
||||
this.node.setNodeValue(aVal).then(() => {
|
||||
this.markup.nodeChanged(this.node);
|
||||
});
|
||||
this.node.setNodeValue(aVal);
|
||||
}, () => {
|
||||
this.node.setNodeValue(oldValue).then(() => {
|
||||
this.markup.nodeChanged(this.node);
|
||||
});
|
||||
this.node.setNodeValue(oldValue);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче