Home
last modified time | relevance | path

Searched refs:comparePositions (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/core/editing/
Dhtmlediting.h160 int comparePositions(const Position&, const Position&);
161 int comparePositions(const PositionWithAffinity&, const PositionWithAffinity&);
197 int comparePositions(const VisiblePosition&, const VisiblePosition&);
Dhtmlediting.cpp75 int comparePositions(const Position& a, const Position& b) in comparePositions() function
107 int comparePositions(const PositionWithAffinity& a, const PositionWithAffinity& b) in comparePositions() function
109 return comparePositions(a.position(), b.position()); in comparePositions()
112 int comparePositions(const VisiblePosition& a, const VisiblePosition& b) in comparePositions() function
114 return comparePositions(a.deepEquivalent(), b.deepEquivalent()); in comparePositions()
264 …if (comparePositions(position, firstPositionInNode(highestRoot)) == -1 && highestRoot->hasEditable… in firstEditableVisiblePositionAfterPositionInRoot()
294 if (comparePositions(position, lastPositionInNode(highestRoot)) == 1) in lastEditablePositionBeforePositionInRoot()
1153 …if (startIsVisuallySame && comparePositions(positionInParentAfterNode(node), selectedRange.endPosi… in isNodeVisiblyContainedWithin()
1157 …if (endIsVisuallySame && comparePositions(selectedRange.startPosition(), positionInParentBeforeNod… in isNodeVisiblyContainedWithin()
DApplyStyleCommand.cpp184 ASSERT(comparePositions(newEnd, newStart) >= 0); in updateStartEnd()
247 if (comparePositions(end, start) < 0) { in applyBlockStyle()
317 if (comparePositions(end, start) < 0) { in applyRelativeFontStyleChange()
571 if (comparePositions(end, start) < 0) { in applyInlineStyle()
631 if (comparePositions(embeddingRemoveStart, embeddingRemoveEnd) <= 0) in applyInlineStyle()
694 if (!startNode || comparePositions(end, firstPositionInOrBeforeNode(startNode)) < 0) in fixRangeAndApplyInlineStyle()
1107 ASSERT(comparePositions(start, end) <= 0); in removeInlineStyle()
1191 return comparePositions(firstPositionInOrBeforeNode(&element), start) >= 0 in elementFullySelected()
1192 && comparePositions(lastPositionInOrAfterNode(&element).upstream(), end) <= 0; in elementFullySelected()
DCompositeEditCommand.cpp810 if (comparePositions(start, end) >= 0) in deleteInsignificantText()
924 if (comparePositions(pos, upstreamStart) < 0) in moveParagraphContentsToNewBlockIfNecessary()
991 ASSERT(comparePositions(start, end) <= 0); in cloneParagraphUnderNewElement()
1131 if (comparePositions(start, end) > 0) in moveParagraphWithClones()
1182 bool startAfterParagraph = comparePositions(visibleStart, endOfParagraphToMove) > 0; in moveParagraphs()
1183 bool endBeforeParagraph = comparePositions(visibleEnd, startOfParagraphToMove) < 0; in moveParagraphs()
1186 bool startInParagraph = comparePositions(visibleStart, startOfParagraphToMove) >= 0; in moveParagraphs()
1187 bool endInParagraph = comparePositions(visibleEnd, endOfParagraphToMove) <= 0; in moveParagraphs()
DDeleteSelectionCommand.cpp136 …if (startSpecialContainer && !endSpecialContainer && comparePositions(positionInParentAfterNode(*s… in initializeStartEnd()
140 …if (endSpecialContainer && !startSpecialContainer && comparePositions(start, positionInParentBefor… in initializeStartEnd()
516 if (comparePositions(firstPositionInOrBeforeNode(node.get()), m_downstreamEnd) >= 0) { in handleGeneralDelete()
610 if (comparePositions(m_upstreamStart, m_downstreamEnd) > 0) in mergeParagraphs()
DVisibleSelection.cpp249 if (comparePositions(start, end) > 0) { in toNormalizedPositions()
350 m_baseIsFirst = comparePositions(m_base, m_extent) <= 0; in setBaseAndExtentToDeepEquivalents()
533 m_baseIsFirst = comparePositions(base, extent) <= 0; in setWithoutValidation()
DInsertParagraphSeparatorCommand.cpp407 …if (!beforeNodePosition.isNull() && comparePositions(VisiblePosition(insertionPosition), beforeNod… in doApply()
DFrameSelection.cpp1312 return comparePositions(start, p) <= 0 && comparePositions(p, end) <= 0; in contains()
DTextIterator.cpp306 ASSERT(comparePositions(start, end) <= 0); in initialize()
/external/chromium_org/third_party/WebKit/Source/core/page/
DEventHandler.cpp526 if (comparePositions(selectionInUserSelectAll.start(), newSelection.start()) < 0) in handleMousePressEventSingleClick()
528 else if (comparePositions(newSelection.end(), selectionInUserSelectAll.end()) < 0) in handleMousePressEventSingleClick()
739 …if (rootUserSelectAllForMousePressNode && comparePositions(target->renderer()->positionForPoint(hi… in updateSelectionForMouseDrag()
743 …if (rootUserSelectAllForTarget && m_mousePressNode->renderer() && comparePositions(target->rendere… in updateSelectionForMouseDrag()