[gtk/wip/alexl/broadway6] broadway: Fix leftover dom modification not using display_commands
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/alexl/broadway6] broadway: Fix leftover dom modification not using display_commands
- Date: Wed, 27 Mar 2019 18:26:18 +0000 (UTC)
commit 411dc7e138f040384b06cb19a0a773cf9de016eb
Author: Alexander Larsson <alexl redhat com>
Date: Wed Mar 27 14:21:28 2019 +0100
broadway: Fix leftover dom modification not using display_commands
gdk/broadway/broadway.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index 00c341c393..c6e537c909 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -755,7 +755,7 @@ TransformNodes.prototype.insertNode = function(parent, posInParent, oldNode)
/* Remove children that are after the new length */
for (i = oldChildren.length - 1; i > len - 1; i--)
- oldNode.removeChild(oldChildren[i]);
+ this.display_commands.push([DISPLAY_OP_DELETE_NODE, oldChildren[i]]);
/* NOTE: No need to modify the parent, we're keeping this node as is */
newNode = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]