Home | History | Annotate | Download | only in svg

Lines Matching refs:endPosition

119 FloatRect SVGInlineTextBox::selectionRectForTextFragment(const SVGTextFragment& fragment, int startPosition, int endPosition, RenderStyle* style)
121 ASSERT(startPosition < endPosition);
139 FloatRect selectionRect = scaledFont.selectionRectForText(constructTextRun(style, fragment), textOrigin, fragment.height * scalingFactor, startPosition, endPosition);
147 LayoutRect SVGInlineTextBox::localSelectionRect(int startPosition, int endPosition)
151 endPosition = min(endPosition - boxStart, static_cast<int>(len()));
152 if (startPosition >= endPosition)
168 fragmentEndPosition = endPosition;
218 int startPosition, endPosition;
219 selectionStartEnd(startPosition, endPosition);
230 fragmentEndPosition = endPosition;
470 bool SVGInlineTextBox::mapStartEndPositionsIntoFragmentCoordinates(const SVGTextFragment& fragment, int& startPosition, int& endPosition) const
472 if (startPosition >= endPosition)
478 if (startPosition >= offset + length || endPosition <= offset)
486 if (endPosition > offset + length)
487 endPosition = length;
489 ASSERT(endPosition >= offset);
490 endPosition -= offset;
493 ASSERT(startPosition < endPosition);
614 TextRun& textRun, const SVGTextFragment& fragment, int startPosition, int endPosition,
653 textRunPaintInfo.to = endPosition;
673 int endPosition = 0;
675 selectionStartEnd(startPosition, endPosition);
676 hasSelection = mapStartEndPositionsIntoFragmentCoordinates(fragment, startPosition, endPosition);
681 if (!hasSelection || startPosition >= endPosition) {
697 paintTextWithShadows(context, selectionStyle, textRun, fragment, startPosition, endPosition, resourceMode);
706 if (endPosition < static_cast<int>(fragment.length) && !paintSelectedTextOnly)
707 paintTextWithShadows(context, style, textRun, fragment, endPosition, fragment.length, resourceMode);