Home
last modified time | relevance | path

Searched refs:oldChild (Results 1 – 25 of 156) sorted by relevance

1234567

/external/webkit/Source/WebCore/rendering/
DRenderObjectChildList.cpp64 RenderObject* RenderObjectChildList::removeChildNode(RenderObject* owner, RenderObject* oldChild, b… in removeChildNode() argument
66 ASSERT(oldChild->parent() == owner); in removeChildNode()
71 if (!owner->documentBeingDestroyed() && fullRemove && oldChild->m_everHadLayout) { in removeChildNode()
72 oldChild->setNeedsLayoutAndPrefWidthsRecalc(); in removeChildNode()
73 if (oldChild->isBody()) in removeChildNode()
76 oldChild->repaint(); in removeChildNode()
80 if (oldChild->isBox()) in removeChildNode()
81 toRenderBox(oldChild)->deleteLineBoxWrapper(); in removeChildNode()
86 …if (owner->style()->visibility() != VISIBLE && oldChild->style()->visibility() == VISIBLE && !oldC… in removeChildNode()
92 if (oldChild->firstChild() || oldChild->hasLayer()) { in removeChildNode()
[all …]
DRenderDetails.cpp65 void RenderDetails::removeChild(RenderObject* oldChild) in removeChild() argument
67 if (oldChild == m_summaryBlock) { in removeChild()
68 RenderBlock::removeChild(oldChild); in removeChild()
73 if (oldChild == m_contentBlock) { in removeChild()
74 RenderBlock::removeChild(oldChild); in removeChild()
79 if (oldChild == m_mainSummary && m_summaryBlock) { in removeChild()
85 m_contentBlock->removeChild(oldChild); in removeChild()
DCounterNode.cpp268 void CounterNode::removeChild(CounterNode* oldChild) in removeChild() argument
270 ASSERT(oldChild); in removeChild()
271 ASSERT(!oldChild->m_firstChild); in removeChild()
272 ASSERT(!oldChild->m_lastChild); in removeChild()
274 CounterNode* next = oldChild->m_nextSibling; in removeChild()
275 CounterNode* previous = oldChild->m_previousSibling; in removeChild()
277 oldChild->m_nextSibling = 0; in removeChild()
278 oldChild->m_previousSibling = 0; in removeChild()
279 oldChild->m_parent = 0; in removeChild()
284 ASSERT(m_firstChild == oldChild); in removeChild()
[all …]
/external/webkit/LayoutTests/dom/xhtml/level3/core/
Dnodereplacechild30.js93 var oldChild;
110 oldChild = doc.createElementNS("http://www.w3.org/1999/xhtml","xhtml:head");
112 appendedChild = parent.appendChild(oldChild);
124 replaced = parent.replaceChild(newElement,oldChild);
128 replaced = parent.replaceChild(oldChild,newElement);
132 replaced = parent.replaceChild(newText,oldChild);
136 replaced = parent.replaceChild(oldChild,newText);
140 replaced = parent.replaceChild(newComment,oldChild);
144 replaced = parent.replaceChild(oldChild,newComment);
148 replaced = parent.replaceChild(oldChild,newPI);
[all …]
Dnodereplacechild38.js93 var oldChild;
113 oldChild = ent.firstChild;
115 assertNotNull("alphaText",oldChild);
121 replaced = ent.replaceChild(cdata,oldChild);
133 replaced = ent.replaceChild(pi,oldChild);
145 replaced = ent.replaceChild(comment,oldChild);
157 replaced = ent.replaceChild(txt,oldChild);
169 replaced = ent.replaceChild(elem,oldChild);
181 replaced = ent.replaceChild(entRef,oldChild);
Dnodereplacechild34.js90 var oldChild;
102 oldChild = doc.createEntityReference("delta");
103 appendedChild = parent.appendChild(oldChild);
105 replaced = parent.replaceChild(newChild,oldChild);
Dnodereplacechild35.js90 var oldChild;
102 oldChild = doc.createEntityReference("delta");
103 appendedChild = parent.appendChild(oldChild);
109 replaced = parent.replaceChild(newChild,oldChild);
Dnodereplacechild37.js98 var oldChild;
116 oldChild = doc.createTextNode("Text");
118 appendedChild = parent.appendChild(oldChild);
123 replaced = parent.replaceChild(newChild,oldChild);
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/node/
DADefCommand.java183 …void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newC… in replaceChild() argument
186 if(this._position_ == oldChild) in replaceChild()
194 if(i.next() == oldChild) in replaceChild()
200 oldChild.parent(null); in replaceChild()
205 oldChild.parent(null); in replaceChild()
212 if(i.next() == oldChild) in replaceChild()
218 oldChild.parent(null); in replaceChild()
223 oldChild.parent(null); in replaceChild()
228 if(this._command_ == oldChild) in replaceChild()
DACallCommand.java146 …void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newC… in replaceChild() argument
149 if(this._position_ == oldChild) in replaceChild()
157 if(i.next() == oldChild) in replaceChild()
163 oldChild.parent(null); in replaceChild()
168 oldChild.parent(null); in replaceChild()
175 if(i.next() == oldChild) in replaceChild()
181 oldChild.parent(null); in replaceChild()
186 oldChild.parent(null); in replaceChild()
DALoopIncCommand.java268 …void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newC… in replaceChild() argument
271 if(this._position_ == oldChild) in replaceChild()
277 if(this._variable_ == oldChild) in replaceChild()
283 if(this._start_ == oldChild) in replaceChild()
289 if(this._end_ == oldChild) in replaceChild()
295 if(this._increment_ == oldChild) in replaceChild()
301 if(this._command_ == oldChild) in replaceChild()
DAFunctionExpression.java115 …void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newC… in replaceChild() argument
118 if(this._name_ == oldChild) in replaceChild()
126 if(i.next() == oldChild) in replaceChild()
132 oldChild.parent(null); in replaceChild()
137 oldChild.parent(null); in replaceChild()
DALoopCommand.java231 …void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newC… in replaceChild() argument
234 if(this._position_ == oldChild) in replaceChild()
240 if(this._variable_ == oldChild) in replaceChild()
246 if(this._start_ == oldChild) in replaceChild()
252 if(this._end_ == oldChild) in replaceChild()
258 if(this._command_ == oldChild) in replaceChild()
DASequenceExpression.java78 …void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newC… in replaceChild() argument
83 if(i.next() == oldChild) in replaceChild()
89 oldChild.parent(null); in replaceChild()
94 oldChild.parent(null); in replaceChild()
DAMultipleCommand.java78 …void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newC… in replaceChild() argument
83 if(i.next() == oldChild) in replaceChild()
89 oldChild.parent(null); in replaceChild()
94 oldChild.parent(null); in replaceChild()
/external/webkit/Source/WebCore/bindings/cpp/
DWebDOMNodeCustom.cpp41 WebDOMNode WebDOMNode::replaceChild(const WebDOMNode& newChild, const WebDOMNode& oldChild) in replaceChild() argument
47 if (impl()->replaceChild(toWebCore(newChild), toWebCore(oldChild), ec, true)) in replaceChild()
48 return oldChild; in replaceChild()
54 WebDOMNode WebDOMNode::removeChild(const WebDOMNode& oldChild) in removeChild() argument
60 if (impl()->removeChild(toWebCore(oldChild), ec)) in removeChild()
61 return oldChild; in removeChild()
/external/webkit/Source/WebCore/dom/
DContainerNode.cpp244 bool ContainerNode::replaceChild(PassRefPtr<Node> newChild, Node* oldChild, ExceptionCode& ec, bool… in replaceChild() argument
252 if (oldChild == newChild) // nothing to do in replaceChild()
256 checkReplaceChild(newChild.get(), oldChild, ec); in replaceChild()
261 if (!oldChild || oldChild->parentNode() != this) { in replaceChild()
266 RefPtr<Node> prev = oldChild->previousSibling(); in replaceChild()
267 RefPtr<Node> next = oldChild->nextSibling(); in replaceChild()
270 RefPtr<Node> removedChild = oldChild; in replaceChild()
271 removeChild(oldChild, ec); in replaceChild()
401 bool ContainerNode::removeChild(Node* oldChild, ExceptionCode& ec) in removeChild() argument
416 if (!oldChild || oldChild->parentNode() != this) { in removeChild()
[all …]
/external/webkit/LayoutTests/dom/html/level1/core/
Dhc_nodereplacechildinvalidnodetype.js104 var oldChild;
114 oldChild = elementList.item(1);
115 rootNode = oldChild.parentNode;
121 replacedChild = rootNode.replaceChild(newChild,oldChild);
Dhc_noderemovechildgetnodename.js98 var oldChild;
112 oldChild = childList.item(0);
113 oldName = oldChild.nodeName;
115 removedChild = employeeNode.removeChild(oldChild);
Dhc_nodereplacechildnewchildexists.js94 var oldChild = null;
122 oldChild = childList.item(5);
123 replacedChild = employeeNode.replaceChild(newChild,oldChild);
124 assertSame("return_value_same",oldChild,replacedChild);
/external/webkit/LayoutTests/dom/xhtml/level1/core/
Dhc_nodereplacechildinvalidnodetype.js104 var oldChild;
114 oldChild = elementList.item(1);
115 rootNode = oldChild.parentNode;
121 replacedChild = rootNode.replaceChild(newChild,oldChild);
Dhc_noderemovechildgetnodename.js98 var oldChild;
112 oldChild = childList.item(0);
113 oldName = oldChild.nodeName;
115 removedChild = employeeNode.removeChild(oldChild);
Dhc_nodereplacechildnewchildexists.js94 var oldChild = null;
122 oldChild = childList.item(5);
123 replacedChild = employeeNode.replaceChild(newChild,oldChild);
124 assertSame("return_value_same",oldChild,replacedChild);
/external/chromium/chrome/common/extensions/docs/examples/extensions/benchmark/jst/
Dutil.js399 function domInsertBefore(newChild, oldChild) { argument
400 return oldChild.parentNode.insertBefore(newChild, oldChild);
410 function domReplaceChild(newChild, oldChild) { argument
411 return oldChild.parentNode.replaceChild(newChild, oldChild);
/external/chromium/chrome/common/extensions/docs/examples/extensions/irc/servlet/jstemplate/
Dutil.js399 function domInsertBefore(newChild, oldChild) { argument
400 return oldChild.parentNode.insertBefore(newChild, oldChild);
410 function domReplaceChild(newChild, oldChild) { argument
411 return oldChild.parentNode.replaceChild(newChild, oldChild);

1234567