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

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

Issue 698213002: Remove lots of Text APIs. (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
Index: sky/engine/core/dom/Node.cpp
diff --git a/sky/engine/core/dom/Node.cpp b/sky/engine/core/dom/Node.cpp
index 2efcb14220cf5f4f91cd482a2a6559155b447e93..2d6c00b7a39b7054e31f416084f1c7ed8814e639 100644
--- a/sky/engine/core/dom/Node.cpp
+++ b/sky/engine/core/dom/Node.cpp
@@ -381,25 +381,6 @@ void Node::remove(ExceptionState& exceptionState)
parent->removeChild(this, exceptionState);
}
-void Node::normalize()
-{
- // Go through the subtree beneath us, normalizing all nodes. This means that
- // any two adjacent text nodes are merged and any empty text nodes are removed.
-
- RefPtr<Node> node = this;
- while (Node* firstChild = node->firstChild())
- node = firstChild;
- while (node) {
- if (node == this)
- break;
-
- if (node->nodeType() == TEXT_NODE)
- node = toText(node)->mergeNextSiblingNodesIfPossible();
- else
- node = NodeTraversal::nextPostOrder(*node);
- }
-}
-
const AtomicString& Node::localName() const
{
return nullAtom;

Powered by Google App Engine
This is Rietveld 408576698