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

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

Issue 729713003: Remove parserInsertBefore. (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.h » ('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 b5418691369e6f4cac0b88ddc970819ab1b1b5e7..8373222c4c4d30661db951fa4d3d66dd08b85ad8 100644
--- a/sky/engine/core/dom/ContainerNode.cpp
+++ b/sky/engine/core/dom/ContainerNode.cpp
@@ -254,28 +254,6 @@ void ContainerNode::appendChildCommon(Node& child)
setLastChild(&child);
}
-void ContainerNode::parserInsertBefore(PassRefPtr<Node> newChild, Node& nextChild)
-{
- ASSERT(newChild);
- ASSERT(nextChild.parentNode() == this);
- ASSERT(!newChild->isDocumentFragment());
- ASSERT(!isHTMLTemplateElement(this));
-
- if (nextChild.previousSibling() == newChild || &nextChild == newChild) // nothing to do
- return;
-
- RefPtr<Node> protect(this);
-
- if (document() != newChild->document())
- document().adoptNode(newChild.get(), ASSERT_NO_EXCEPTION);
-
- insertBeforeCommon(nextChild, *newChild);
-
- ChildListMutationScope(*this).childAdded(*newChild);
-
- notifyNodeInserted(*newChild, ChildrenChangeSourceParser);
-}
-
PassRefPtr<Node> ContainerNode::replaceChild(PassRefPtr<Node> newChild, PassRefPtr<Node> oldChild, ExceptionState& exceptionState)
{
#if !ENABLE(OILPAN)
« no previous file with comments | « sky/engine/core/dom/ContainerNode.h ('k') | sky/engine/core/html/parser/HTMLConstructionSite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698