Lines Matching refs:selectedRange
553 RefPtr<Range> selectedRange = Range::create(document);
554 selectedRange->setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().computeOffsetInContainerNode(), ec);
556 selectedRange->setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOffsetInContainerNode(), ec);
557 return selectedRange.release();
1059 // Call this function to determine whether a node is visibly fit inside selectedRange
1060 bool isNodeVisiblyContainedWithin(Node* node, const Range* selectedRange)
1063 ASSERT(selectedRange);
1066 if (selectedRange->compareNode(node, ec) == Range::NODE_INSIDE)
1069 bool startIsVisuallySame = visiblePositionBeforeNode(node) == selectedRange->startPosition();
1070 if (startIsVisuallySame && comparePositions(positionInParentAfterNode(node), selectedRange->endPosition()) < 0)
1073 bool endIsVisuallySame = visiblePositionAfterNode(node) == selectedRange->endPosition();
1074 if (endIsVisuallySame && comparePositions(selectedRange->startPosition(), positionInParentBeforeNode(node)) < 0)