Lines Matching refs:oldTree
125 _generateDiffTree(newTree, oldTree, newTreeSiblings, oldTreeSiblings) { argument
130 const oldId = oldTree ? this.getNodeId(oldTree) : null;
171 if (oldTree && !newTreeSiblingIds.includes(oldId)) {
172 const deletedTreeDiff = this._cloneNode(oldTree);
184 deletedTreeDiff.children = this._visitChildren(null, oldTree);
190 oldTree = nextOldTree;
195 if (this.isModified && this.isModified(newTree, oldTree)) {
200 diffTree.children = this._visitChildren(newTree, oldTree);
202 } else if (oldTree) {
205 const diffTree = this._cloneNode(oldTree);
214 diffTree.children = this._visitChildren(null, oldTree);
224 _visitChildren(newTree, oldTree) { argument
230 newTree?.children?.length ?? 0, oldTree?.children?.length ?? 0);
235 const oldChild = i < oldTree?.children?.length ?
236 oldTree.children[i] : null;
240 newTree?.children ?? [], oldTree?.children ?? [],