Lines Matching defs:textRun
69 TextRun textRun(constructTextRun(style, fragment));
76 textRun.setHorizontalGlyphStretch(narrowPrecisionToFloat(fragmentTransform.xScale()));
78 return fragment.characterOffset - start() + textRenderer->scaledFont().offsetForPosition(textRun, position * scalingFactor, includePartialGlyphs);
381 bool SVGInlineTextBox::prepareGraphicsContextForTextPainting(GraphicsContext*& context, float scalingFactor, TextRun& textRun, RenderStyle* style)
388 textRun.setActivePaintingResource(m_paintingResource);
394 void SVGInlineTextBox::restoreGraphicsContextAfterTextPainting(GraphicsContext*& context, TextRun& textRun)
399 textRun.setActivePaintingResource(0);
601 void SVGInlineTextBox::paintTextWithShadows(GraphicsContext* context, RenderStyle* style, TextRun& textRun, const SVGTextFragment& fragment, int startPosition, int endPosition)
623 if (!prepareGraphicsContextForTextPainting(context, scalingFactor, textRun, style))
649 scaledFont.drawText(context, textRun, textOrigin + extraOffset, startPosition, endPosition);
659 restoreGraphicsContextAfterTextPainting(context, textRun);
686 TextRun textRun(constructTextRun(style, fragment));
688 paintTextWithShadows(context, style, textRun, fragment, 0, fragment.length);
694 paintTextWithShadows(context, style, textRun, fragment, 0, startPosition);
701 paintTextWithShadows(context, selectionStyle, textRun, fragment, startPosition, endPosition);
708 paintTextWithShadows(context, style, textRun, fragment, endPosition, fragment.length);