| Index: third_party/WebKit/Source/core/dom/Node.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
|
| index 9e1e08e42a39a3c8586e233f4bbf9da0a943e588..9bc67deca1d0043cec06f3f1919348d9b26a045f 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp
|
| @@ -2493,27 +2493,6 @@ DEFINE_TRACE_WRAPPERS(Node) {
|
| EventTarget::traceWrappers(visitor);
|
| }
|
|
|
| -unsigned Node::lengthOfContents() const {
|
| - // This switch statement must be consistent with that of
|
| - // Range::processContentsBetweenOffsets.
|
| - switch (getNodeType()) {
|
| - case Node::kTextNode:
|
| - case Node::kCdataSectionNode:
|
| - case Node::kCommentNode:
|
| - case Node::kProcessingInstructionNode:
|
| - return toCharacterData(this)->length();
|
| - case Node::kElementNode:
|
| - case Node::kDocumentNode:
|
| - case Node::kDocumentFragmentNode:
|
| - return toContainerNode(this)->countChildren();
|
| - case Node::kAttributeNode:
|
| - case Node::kDocumentTypeNode:
|
| - return 0;
|
| - }
|
| - NOTREACHED();
|
| - return 0;
|
| -}
|
| -
|
| } // namespace blink
|
|
|
| #ifndef NDEBUG
|
|
|