Home | History | Annotate | Download | only in svg

Lines Matching refs:endPosition

116 FloatRect SVGInlineTextBox::selectionRectForTextFragment(const SVGTextFragment& fragment, int startPosition, int endPosition, RenderStyle* style)
118 ASSERT(startPosition < endPosition);
136 FloatRect selectionRect = scaledFont.selectionRectForText(constructTextRun(style, fragment), textOrigin, fragment.height * scalingFactor, startPosition, endPosition);
144 LayoutRect SVGInlineTextBox::localSelectionRect(int startPosition, int endPosition)
148 endPosition = std::min(endPosition - boxStart, static_cast<int>(len()));
149 if (startPosition >= endPosition)
165 fragmentEndPosition = endPosition;
215 int startPosition, endPosition;
216 selectionStartEnd(startPosition, endPosition);
226 fragmentEndPosition = endPosition;
430 bool SVGInlineTextBox::mapStartEndPositionsIntoFragmentCoordinates(const SVGTextFragment& fragment, int& startPosition, int& endPosition) const
432 if (startPosition >= endPosition)
438 if (startPosition >= offset + length || endPosition <= offset)
446 if (endPosition > offset + length)
447 endPosition = length;
449 ASSERT(endPosition >= offset);
450 endPosition -= offset;
453 ASSERT(startPosition < endPosition);
562 TextRun& textRun, const SVGTextFragment& fragment, int startPosition, int endPosition,
596 textRunPaintInfo.to = endPosition;
620 int endPosition = 0;
622 selectionStartEnd(startPosition, endPosition);
623 hasSelection = mapStartEndPositionsIntoFragmentCoordinates(fragment, startPosition, endPosition);
628 if (!hasSelection || startPosition >= endPosition) {
644 paintTextWithShadows(context, selectionStyle, textRun, fragment, startPosition, endPosition, resourceMode);
653 if (endPosition < static_cast<int>(fragment.length) && !paintSelectedTextOnly)
654 paintTextWithShadows(context, style, textRun, fragment, endPosition, fragment.length, resourceMode);