| Index: third_party/WebKit/Source/core/editing/Position.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/Position.cpp b/third_party/WebKit/Source/core/editing/Position.cpp
|
| index 1488cbf64b21a57d6875290c4c7e3a5432e14450..c7c0a81a8ab1bffa7da96ed81d3d66e83049917d 100644
|
| --- a/third_party/WebKit/Source/core/editing/Position.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/Position.cpp
|
| @@ -492,32 +492,6 @@ PositionTemplate<Strategy> PositionTemplate<Strategy>::lastPositionInOrAfterNode
|
| return Strategy::editingIgnoresContent(node) ? afterNode(node) : lastPositionInNode(node);
|
| }
|
|
|
| -template <typename Strategy>
|
| -void PositionTemplate<Strategy>::debugPosition(const char* msg) const
|
| -{
|
| - static const char* const anchorTypes[] = {
|
| - "OffsetInAnchor",
|
| - "BeforeAnchor",
|
| - "AfterAnchor",
|
| - "BeforeChildren",
|
| - "AfterChildren",
|
| - "Invalid",
|
| - };
|
| -
|
| - if (isNull()) {
|
| - fprintf(stderr, "Position [%s]: null\n", msg);
|
| - return;
|
| - }
|
| -
|
| - const char* anchorType = anchorTypes[std::min(static_cast<size_t>(m_anchorType), WTF_ARRAY_LENGTH(anchorTypes) - 1)];
|
| - if (m_anchorNode->isTextNode()) {
|
| - fprintf(stderr, "Position [%s]: %s [%p] %s, (%s) at %d\n", msg, anchorNode()->nodeName().utf8().data(), anchorNode(), anchorType, m_anchorNode->nodeValue().utf8().data(), m_offset);
|
| - return;
|
| - }
|
| -
|
| - fprintf(stderr, "Position [%s]: %s [%p] %s at %d\n", msg, anchorNode()->nodeName().utf8().data(), anchorNode(), anchorType, m_offset);
|
| -}
|
| -
|
| PositionInFlatTree toPositionInFlatTree(const Position& pos)
|
| {
|
| if (pos.isNull())
|
|
|