Bug 1586800 - Use the contextual WalkerFront in _deleteNode(). r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D48439
This commit is contained in:
@@ -167,13 +167,15 @@ class MarkupContextMenu {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const nodeFront = this.selection.nodeFront;
|
||||||
|
|
||||||
// If the markup panel is active, use the markup panel to delete
|
// If the markup panel is active, use the markup panel to delete
|
||||||
// the node, making this an undoable action.
|
// the node, making this an undoable action.
|
||||||
if (this.markup) {
|
if (this.markup) {
|
||||||
this.markup.deleteNode(this.selection.nodeFront);
|
this.markup.deleteNode(nodeFront);
|
||||||
} else {
|
} else {
|
||||||
// remove the node from content
|
// remove the node from content
|
||||||
this.walker.removeNode(this.selection.nodeFront);
|
nodeFront.walkerFront.removeNode(nodeFront);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user