Lines Matching defs:position

135 Node* highestEditableRoot(const Position& position)
137 Node* node = position.node();
141 Node* highestRoot = editableRootForPosition(position);
231 Position nextCandidate(const Position& position)
233 PositionIterator p = position;
242 Position nextVisuallyDistinctCandidate(const Position& position)
244 Position p = position;
254 Position previousCandidate(const Position& position)
256 PositionIterator p = position;
265 Position previousVisuallyDistinctCandidate(const Position& position)
267 Position p = position;
277 VisiblePosition firstEditablePositionAfterPositionInRoot(const Position& position, Node* highestRoot)
279 // position falls before highestRoot.
280 if (comparePositions(position, firstDeepEditingPositionForNode(highestRoot)) == -1 && highestRoot->isContentEditable())
283 Position p = position;
298 VisiblePosition lastEditablePositionBeforePositionInRoot(const Position& position, Node* highestRoot)
300 // When position falls after highestRoot, the result is easy to compute.
301 if (comparePositions(position, lastDeepEditingPositionForNode(highestRoot)) == 1)
304 Position p = position;
327 // FIXME: Pass a position to this function. The enclosing block of [table, x] for example, should be the
336 // example, in <div><img /></div>, Editing might use (img, 1) for the position
338 // position to a Range object. Ideally all internal positions should
362 // use the highest allowed position in the node
462 if (renderer->style()->position() != StaticPosition)
595 // Returns the visible position at the beginning of a node
605 // Returns the visible position at the ending of a node
691 // Don't return a non-editable node if the input position was editable, since
797 // Check that position is on a line by itself inside a list item
1018 // For rendered text nodes, return the last position that a caret could occupy.
1030 bool lineBreakExistsAtPosition(const Position& position)
1032 if (position.isNull())
1035 if (position.anchorNode()->hasTagName(brTag) && position.atFirstEditingPositionForNode())
1038 if (!position.anchorNode()->isTextNode() || !position.anchorNode()->renderer()->style()->preserveNewline())
1041 Text* textNode = static_cast<Text*>(position.anchorNode());
1042 unsigned offset = position.offsetInContainerNode();