Lines Matching refs:textStyle

54 void TextPainter::paint(int startOffset, int endOffset, int length, const Style& textStyle, TextBlobPtr* cachedTextBlob)
57 updateGraphicsContext(textStyle, stateSaver);
61 if (textStyle.emphasisMarkColor != textStyle.fillColor)
62 m_graphicsContext->setFillColor(textStyle.emphasisMarkColor);
72 void TextPainter::updateGraphicsContext(GraphicsContext* context, const Style& textStyle, bool horizontal, GraphicsContextStateSaver& stateSaver)
75 if (textStyle.strokeWidth > 0) {
85 if (mode & TextModeFill && textStyle.fillColor != context->fillColor())
86 context->setFillColor(textStyle.fillColor);
89 if (textStyle.strokeColor != context->strokeColor())
90 context->setStrokeColor(textStyle.strokeColor);
91 if (textStyle.strokeWidth != context->strokeThickness())
92 context->setStrokeThickness(textStyle.strokeWidth);
96 if (textStyle.shadow && !context->printing()) {
99 context->setDrawLooper(textStyle.shadow->createDrawLooper(DrawLooperBuilder::ShadowIgnoresAlpha, horizontal));
113 TextPainter::Style textStyle;
116 textStyle.fillColor = Color::black;
117 textStyle.strokeColor = Color::black;
118 textStyle.emphasisMarkColor = Color::black;
119 textStyle.strokeWidth = style->textStrokeWidth();
120 textStyle.shadow = 0;
122 textStyle.fillColor = renderer.resolveColor(style, CSSPropertyWebkitTextFillColor);
123 textStyle.strokeColor = renderer.resolveColor(style, CSSPropertyWebkitTextStrokeColor);
124 textStyle.emphasisMarkColor = renderer.resolveColor(style, CSSPropertyWebkitTextEmphasisColor);
125 textStyle.strokeWidth = style->textStrokeWidth();
126 textStyle.shadow = style->textShadow();
137 textStyle.fillColor = textColorForWhiteBackground(textStyle.fillColor);
138 textStyle.strokeColor = textColorForWhiteBackground(textStyle.strokeColor);
139 textStyle.emphasisMarkColor = textColorForWhiteBackground(textStyle.emphasisMarkColor);
144 textStyle.shadow = 0;
147 return textStyle;
150 TextPainter::Style TextPainter::selectionPaintingStyle(RenderObject& renderer, bool haveSelection, bool forceBlackText, bool isPrinting, const TextPainter::Style& textStyle)
152 TextPainter::Style selectionStyle = textStyle;