Home
last modified time | relevance | path

Searched refs:startPosition (Results 1 – 25 of 37) sorted by relevance

12

/external/webkit/WebCore/editing/
DInsertTextCommand.cpp125 Position startPosition(endingSelection().start()); in input() local
132 Position downstream(startPosition.downstream()); in input()
135 VisiblePosition caret(startPosition); in input()
144 startPosition = startPosition.upstream(); in input()
148 Position positionBeforeStartNode(positionBeforeNode(startPosition.node())); in input()
149 deleteInsignificantText(startPosition.upstream(), startPosition.downstream()); in input()
150 if (!startPosition.node()->inDocument()) in input()
151 startPosition = positionBeforeStartNode; in input()
152 if (!startPosition.isCandidate()) in input()
153 startPosition = startPosition.downstream(); in input()
[all …]
DEditor.cpp1320 selection.setWithoutValidation(range->startPosition(), range->endPosition()); in selectComposition()
1521 setStart(paragraphRange.get(), startOfParagraph(arbitraryRange->startPosition())); in paragraphAlignedRangeForRange()
1525 …nge->startContainer(ec)->document(), paragraphRange->startPosition(), arbitraryRange->startPositio… in paragraphAlignedRangeForRange()
1666 setStart(paragraphRange.get(), startOfParagraph(searchRange->startPosition())); in findFirstMisspellingOrBadGrammarInRange()
1668 setEnd(paragraphRange.get(), endOfParagraph(searchRange->startPosition())); in findFirstMisspellingOrBadGrammarInRange()
1670 …Range->startContainer(ec)->document(), paragraphRange->startPosition(), searchRange->startPosition in findFirstMisspellingOrBadGrammarInRange()
1681 if (inSameParagraph(paragraphRange->startPosition(), searchRange->endPosition())) { in findFirstMisspellingOrBadGrammarInRange()
1684 …reate(paragraphRange->startContainer(ec)->document(), paragraphRange->startPosition(), searchRange… in findFirstMisspellingOrBadGrammarInRange()
1735 …hRange->startContainer(ec)->document(), searchRange->startPosition(), paragraphRange->startPositio… in findFirstMisspellingOrBadGrammarInRange()
1745 …hRange->startContainer(ec)->document(), searchRange->startPosition(), paragraphRange->startPositio… in findFirstMisspellingOrBadGrammarInRange()
[all …]
DApplyStyleCommand.cpp479 Position ApplyStyleCommand::startPosition() in startPosition() function in WebCore::ApplyStyleCommand
533 Position start = startPosition(); in applyBlockStyle()
577 updateStartEnd(startRange->startPosition(), endRange->startPosition()); in applyBlockStyle()
609 Position start = startPosition(); in applyRelativeFontStyleChange()
620 start = startPosition(); in applyRelativeFontStyleChange()
625 start = startPosition(); in applyRelativeFontStyleChange()
632 start = startPosition(); in applyRelativeFontStyleChange()
637 start = startPosition(); in applyRelativeFontStyleChange()
844 Position start = startPosition(); in applyInlineStyle()
855 start = startPosition(); in applyInlineStyle()
[all …]
DApplyStyleCommand.h102 Position startPosition();
Dvisible_units.cpp150 pos = it.range()->startPosition(); in previousBoundary()
237 pos = it.range()->startPosition(); in nextBoundary()
247 if (visPos == VisiblePosition(charIt.range()->startPosition())) in nextBoundary()
Dmarkup.cpp828 VisiblePosition visibleStart(updatedRange->startPosition(), VP_DEFAULT_AFFINITY); in createMarkup()
1131 styleNode = context->startPosition().node(); in createFragmentFromText()
1173 && block != editableRootForPosition(context->startPosition()); in createFragmentFromText()
DCompositeEditCommand.cpp883 … setEndingSelection(VisibleSelection(start->startPosition(), end->startPosition(), DOWNSTREAM)); in moveParagraphs()
DVisibleSelection.cpp89 : m_base(range->startPosition()) in VisibleSelection()
/external/webkit/WebCore/accessibility/
DAccessibilityObject.cpp165 VisiblePosition startPosition = startOfWord(visiblePos, LeftWordIfOnBoundary); in positionOfLeftWord() local
166 VisiblePosition endPosition = endOfWord(startPosition); in positionOfLeftWord()
167 return VisiblePositionRange(startPosition, endPosition); in positionOfLeftWord()
172 VisiblePosition startPosition = startOfWord(visiblePos, RightWordIfOnBoundary); in positionOfRightWord() local
173 VisiblePosition endPosition = endOfWord(startPosition); in positionOfRightWord()
174 return VisiblePositionRange(startPosition, endPosition); in positionOfRightWord()
182 VisiblePosition startPosition = visiblePosition; in updateAXLineStartForVisiblePosition() local
186 tempPosition = startPosition.previous(); in updateAXLineStartForVisiblePosition()
200 startPosition = tempPosition; in updateAXLineStartForVisiblePosition()
203 return startPosition; in updateAXLineStartForVisiblePosition()
[all …]
DAccessibilityRenderObject.cpp1419 Position startPosition, endPosition; in ariaSelectedTextDOMRange() local
1423 startPosition = ariaRange->startPosition(); in ariaSelectedTextDOMRange()
1425 startPosition = currentSelectionRange->startPosition(); in ariaSelectedTextDOMRange()
1432 return Range::create(ariaRange->ownerDocument(), startPosition, endPosition); in ariaSelectedTextDOMRange()
1988 VisiblePosition startPosition = selection.selection().visibleStart(); in doAXRangeForLine() local
1990 int index1 = indexForVisiblePosition(startPosition); in doAXRangeForLine()
/external/webkit/WebCore/platform/text/
DPlatformString.h300 int find(const UChar*, size_t, UChar, int startPosition = 0);
301 int reverseFind(const UChar*, size_t, UChar, int startPosition = -1);
318 inline int find(const UChar* characters, size_t length, UChar character, int startPosition) in find() argument
320 if (startPosition >= static_cast<int>(length)) in find()
322 for (size_t i = startPosition; i < length; ++i) { in find()
329 …const UChar* characters, size_t length, CharacterMatchFunctionPtr matchFunction, int startPosition) in find() argument
331 if (startPosition >= static_cast<int>(length)) in find()
333 for (size_t i = startPosition; i < length; ++i) { in find()
340 inline int reverseFind(const UChar* characters, size_t length, UChar character, int startPosition) in reverseFind() argument
342 if (startPosition >= static_cast<int>(length) || !length) in reverseFind()
[all …]
/external/webkit/WebCore/svg/
DSVGTextContentElement.cpp63 … int startOffset, long startPosition, long length, bool isVerticalText, long& atCharacter) in cumulativeCharacterRangeLength() argument
71 bool usesFullRange = (startPosition == -1 && length == -1); in cumulativeCharacterRangeLength()
74 … if (usesFullRange || (atCharacter >= startPosition && atCharacter <= startPosition + length)) { in cumulativeCharacterRangeLength()
91 if (atCharacter == startPosition + length - 1) in cumulativeCharacterRangeLength()
156 long startPosition = m_queryStartPosition; in chunkPortionCallback() local
159 …th = cumulativeCharacterRangeLength(start, end, textBox, startOffset, startPosition, length, isVer… in chunkPortionCallback()
166 if (m_atCharacter == startPosition + length) in chunkPortionCallback()
269 void setQueryInputParameters(long startPosition, long length, FloatPoint referencePoint) in setQueryInputParameters()
271 m_queryStartPosition = startPosition; in setQueryInputParameters()
346 … long startPosition = 0, long length = 0, FloatPoint referencePoint = FloatPoint()) in executeTextQuery() argument
[all …]
DSVGFont.cpp139 …tifier, const Vector<SVGGlyphIdentifier::ArabicForm>& chars, unsigned startPosition, unsigned endP… in isCompatibleArabicForm() argument
144 Vector<SVGGlyphIdentifier::ArabicForm>::const_iterator it = chars.begin() + startPosition; in isCompatibleArabicForm()
157 … const Vector<SVGGlyphIdentifier::ArabicForm>& chars, unsigned startPosition, unsigned endPosition) in isCompatibleGlyph() argument
207 return isCompatibleArabicForm(identifier, chars, startPosition, endPosition); in isCompatibleGlyph()
/external/icu4c/layout/
DLigatureSubstSubtables.cpp30 le_int32 startPosition = glyphIterator->getCurrStreamPosition(); in process() local
60 glyphIterator->setCurrStreamPosition(startPosition); in process()
DLookupProcessor.cpp27 le_int32 startPosition = glyphIterator->getCurrStreamPosition(); in applyLookupTable() local
39 glyphIterator->setCurrStreamPosition(startPosition); in applyLookupTable()
/external/webkit/WebCore/rendering/
DRenderTextControl.cpp244 VisiblePosition startPosition = visiblePositionForIndex(start); in setSelectionRange() local
247 endPosition = startPosition; in setSelectionRange()
253 if (startPosition.isNotNull() && endPosition.isNotNull()) { in setSelectionRange()
254 …ASSERT(startPosition.deepEquivalent().node()->shadowAncestorNode() == node() && endPosition.deepEq… in setSelectionRange()
256 VisibleSelection newSelection = VisibleSelection(startPosition, endPosition); in setSelectionRange()
DInlineTextBox.cpp719 int startPosition = max<int>(marker.startOffset - m_start, 0); in paintSpellingOrGrammarMarker() local
730 …Rect = enclosingIntRect(font.selectionRectForText(run, startPoint, h, startPosition, endPosition)); in paintSpellingOrGrammarMarker()
/external/webkit/JavaScriptCore/runtime/
DStringPrototype.cpp230 int startPosition = 0; in stringProtoFuncReplace() local
247 … regExpConstructor->performMatch(reg, source, startPosition, matchIndex, matchLen, &ovector); in stringProtoFuncReplace()
274 startPosition = lastIndex; in stringProtoFuncReplace()
278 startPosition++; in stringProtoFuncReplace()
279 if (startPosition > source.size()) in stringProtoFuncReplace()
288 … regExpConstructor->performMatch(reg, source, startPosition, matchIndex, matchLen, &ovector); in stringProtoFuncReplace()
318 startPosition = lastIndex; in stringProtoFuncReplace()
322 startPosition++; in stringProtoFuncReplace()
323 if (startPosition > source.size()) in stringProtoFuncReplace()
/external/webkit/WebCore/dom/
DPosition.h191 Position startPosition(const Range*);
DRange.h94 const Position startPosition() const { return m_start.toPosition(); } in startPosition() function
DPosition.cpp1118 Position startPosition(const Range* r) in startPosition() function
1120 return r ? r->startPosition() : Position(); in startPosition()
DRange.cpp1648 return a.startPosition() == b.startPosition() && a.endPosition() == b.endPosition(); in operator ==()
/external/webkit/WebCore/page/
DDOMSelection.cpp384 … selection->setSelection(VisibleSelection(r->startPosition(), range->endPosition(), DOWNSTREAM)); in addRange()
397 … selection->setSelection(VisibleSelection(range->startPosition(), r->endPosition(), DOWNSTREAM)); in addRange()
/external/webkit/WebCore/accessibility/gtk/
DAccessibilityObjectWrapperAtk.cpp737 VisiblePosition startPosition = coreObject->visiblePositionForIndex(offset); in webkit_accessible_text_set_caret_offset() local
738 startPosition.setAffinity(DOWNSTREAM); in webkit_accessible_text_set_caret_offset()
740 VisiblePositionRange range = VisiblePositionRange(startPosition, endPosition); in webkit_accessible_text_set_caret_offset()
/external/webkit/WebKit/mac/WebView/
DWebFrame.mm695 int startPosition = TextIterator::rangeLength(testRange.get());
702 return NSMakeRange(startPosition, endPosition - startPosition);

12