Searched refs:passedPosition (Results 1 – 2 of 2) sorted by relevance
317 static int indexForPosition(HTMLElement* innerEditor, const Position& passedPosition) in indexForPosition() argument319 …if (!innerEditor || !innerEditor->contains(passedPosition.anchorNode()) || passedPosition.isNull()) in indexForPosition()322 if (positionBeforeNode(innerEditor) == passedPosition) in indexForPosition()326 Node* startNode = passedPosition.computeNodeBeforePosition(); in indexForPosition()328 startNode = passedPosition.containerNode(); in indexForPosition()335 if (node == passedPosition.containerNode()) in indexForPosition()336 index += std::min(length, passedPosition.offsetInContainerNode()); in indexForPosition()
558 Position VisiblePosition::canonicalPosition(const Position& passedPosition) in canonicalPosition() argument563 Position position = passedPosition; in canonicalPosition()