Home
last modified time | relevance | path

Searched refs:toInsert (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DInnerNodeImpl.java116 LeafNodeImpl toInsert = (LeafNodeImpl) newChild; in insertChildAt() local
117 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()
DDocumentImpl.java418 @Override public Node insertChildAt(Node toInsert, int index) { in insertChildAt() argument
419 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()