Lines Matching full:epos
59 int ePos = min(endPos - m_start, (int)m_len);
60 return (sPos < ePos);
109 int ePos = min(endPos - m_start, (int)m_len);
111 if (sPos > ePos)
120 IntPoint(tx + m_x, ty + selTop), selHeight, sPos, ePos));
478 int ePos = 0;
480 selectionStartEnd(sPos, ePos);
485 ePos = min<int>(ePos, m_truncation);
496 if (!paintSelectedTextSeparately || ePos <= sPos) {
500 paintTextWithShadows(context, font, textRun, ePos, sPos, length, textOrigin, m_x + tx, m_y + ty, width(), height(), textShadow, textStrokeWidth > 0);
506 if ((paintSelectedTextOnly || paintSelectedTextSeparately) && sPos < ePos) {
512 paintTextWithShadows(context, font, textRun, sPos, ePos, length, textOrigin, m_x + tx, m_y + ty, width(), height(), selectionShadow, selectionStrokeWidth > 0);
554 void InlineTextBox::selectionStartEnd(int& sPos, int& ePos)
569 ePos = min(endPos - m_start, (int)m_len);
575 int sPos, ePos;
576 selectionStartEnd(sPos, ePos);
577 if (sPos >= ePos)
600 IntPoint(m_x + tx, y + ty), h, c, style->colorSpace(), sPos, ePos);
608 int ePos = min(endPos - offset, (int)m_len);
610 if (sPos >= ePos)
623 IntPoint(m_x + tx, y + ty), h, c, style->colorSpace(), sPos, ePos);
806 int ePos = min(marker.endOffset - m_start, (unsigned)m_len);
810 IntRect markerRect = enclosingIntRect(font.selectionRectForText(run, IntPoint(m_x, y), h, sPos, ePos));
822 pt->drawHighlightForText(font, run, IntPoint(m_x + tx, y + ty), h, color, style->colorSpace(), sPos, ePos);
834 int ePos = min(marker.endOffset - m_start, (unsigned)m_len);
839 IntRect markerRect = enclosingIntRect(font.selectionRectForText(run, startPoint, h, sPos, ePos));