| Index: Source/core/dom/Position.h
|
| diff --git a/Source/core/dom/Position.h b/Source/core/dom/Position.h
|
| index eea78f644ce9d277e6cbf2df36b2eb63eb7da14d..5f92fe5822c9d7e6f80ac315374ebf3015ced6e4 100644
|
| --- a/Source/core/dom/Position.h
|
| +++ b/Source/core/dom/Position.h
|
| @@ -274,10 +274,10 @@ inline Position positionAfterNode(Node* anchorNode)
|
|
|
| inline int lastOffsetInNode(Node* node)
|
| {
|
| - return node->offsetInCharacters() ? node->maxCharacterOffset() : static_cast<int>(node->childNodeCount());
|
| + return node->offsetInCharacters() ? node->maxCharacterOffset() : static_cast<int>(node->countChildren());
|
| }
|
|
|
| -// firstPositionInNode and lastPositionInNode return parent-anchored positions, lastPositionInNode construction is O(n) due to childNodeCount()
|
| +// firstPositionInNode and lastPositionInNode return parent-anchored positions, lastPositionInNode construction is O(n) due to countChildren()
|
| inline Position firstPositionInNode(Node* anchorNode)
|
| {
|
| if (anchorNode->isTextNode())
|
|
|