Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: sky/engine/core/dom/ContainerNode.cpp

Issue 734063005: Remove parserRemoveChild. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/ContainerNode.h ('k') | sky/engine/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/ContainerNode.cpp
diff --git a/sky/engine/core/dom/ContainerNode.cpp b/sky/engine/core/dom/ContainerNode.cpp
index 8373222c4c4d30661db951fa4d3d66dd08b85ad8..59e5a830c3d1e2d1af4a4cbdc6838fa8359690b0 100644
--- a/sky/engine/core/dom/ContainerNode.cpp
+++ b/sky/engine/core/dom/ContainerNode.cpp
@@ -499,23 +499,6 @@ void ContainerNode::removeBetween(Node* previousChild, Node* nextChild, Node& ol
document().adoptIfNeeded(oldChild);
}
-void ContainerNode::parserRemoveChild(Node& oldChild)
-{
- ASSERT(oldChild.parentNode() == this);
- ASSERT(!oldChild.isDocumentFragment());
-
- Node* prev = oldChild.previousSibling();
- Node* next = oldChild.nextSibling();
-
- ChildListMutationScope(*this).willRemoveChild(oldChild);
- oldChild.notifyMutationObserversNodeWillDetach();
-
- removeBetween(prev, next, oldChild);
-
- notifyNodeRemoved(oldChild);
- childrenChanged(ChildrenChange::forRemoval(oldChild, ChildrenChangeSourceParser));
-}
-
// this differs from other remove functions because it forcibly removes all the children,
// regardless of read-only status or event exceptions, e.g.
void ContainerNode::removeChildren()
« no previous file with comments | « sky/engine/core/dom/ContainerNode.h ('k') | sky/engine/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698