Searched refs:toInsert (Results 1 – 2 of 2) sorted by relevance
116 LeafNodeImpl toInsert = (LeafNodeImpl) newChild; in insertChildAt() local117 if (toInsert.document != null && document != null && toInsert.document != document) { in insertChildAt()120 if (toInsert.isParentOf(this)) { in insertChildAt()124 if (toInsert.parent != null) { in insertChildAt()125 int oldIndex = toInsert.index; in insertChildAt()126 toInsert.parent.children.remove(oldIndex); in insertChildAt()127 toInsert.parent.refreshIndices(oldIndex); in insertChildAt()130 children.add(index, toInsert); in insertChildAt()131 toInsert.parent = this; in insertChildAt()
418 @Override public Node insertChildAt(Node toInsert, int index) { in insertChildAt() argument419 if (toInsert instanceof Element && getDocumentElement() != null) { in insertChildAt()423 if (toInsert instanceof DocumentType && getDoctype() != null) { in insertChildAt()427 return super.insertChildAt(toInsert, index); in insertChildAt()