mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 977043 - Prevent markupview from breaking selection. r=jwalker
This commit is contained in:
parent
b379cc00cc
commit
8d5203ac2b
@ -299,6 +299,9 @@ MarkupView.prototype = {
|
||||
this.markNodeAsSelected(selection.nodeFront);
|
||||
}
|
||||
done();
|
||||
}, (e) => {
|
||||
console.error(e);
|
||||
done();
|
||||
});
|
||||
} else {
|
||||
this.unmarkSelectedNode();
|
||||
@ -863,8 +866,10 @@ MarkupView.prototype = {
|
||||
let parent = node.parentNode();
|
||||
if (!container.elt.parentNode) {
|
||||
let parentContainer = this._containers.get(parent);
|
||||
parentContainer.childrenDirty = true;
|
||||
this._updateChildren(parentContainer, {expand: node});
|
||||
if (parentContainer) {
|
||||
parentContainer.childrenDirty = true;
|
||||
this._updateChildren(parentContainer, {expand: node});
|
||||
}
|
||||
}
|
||||
|
||||
node = parent;
|
||||
|
Loading…
Reference in New Issue
Block a user