Lines Matching defs:style
237 [painter, x, y, run, this](TextRange textRange, const TextStyle& style, const ClipContext& context) {
239 this->paintBackground(painter, x, y, textRange, style, context);
257 (TextRange textRange, const TextStyle& style, const ClipContext& context) {
258 this->paintShadow(painter, x, y, textRange, style, context);
282 (TextRange textRange, const TextStyle& style, const ClipContext& context) {
283 if (style.getDecoration().fType == TextDecoration::kUnderline) {
284 SkScalar tmpThick = this->calculateThickness(style, context);
301 (TextRange textRange, const TextStyle& style, const ClipContext& context) {
305 this->paintDecorations(painter, x, y, textRange, style, context);
380 [run, this](TextRange textRange, const TextStyle& style, const ClipContext& context) {
381 roundRectAttrs.push_back({style.getStyleId(), style.getBackgroundRect(), context.clip});
409 const auto& style = fOwner->block(fBlockRange.start).fStyle;
433 this->buildTextBlob(fTextExcludingSpaces, style, context);
454 [this](TextRange textRange, const TextStyle& style, const ClipContext& context) {
455 this->buildTextBlob(textRange, style, context);
542 const TextStyle& style,
544 visitor(textRange, style, context);
556 void TextLine::buildTextBlob(TextRange textRange, const TextStyle& style, const ClipContext& context) {
564 if (style.hasForeground()) {
565 record.fPaint = style.getForegroundPaintOrID();
567 std::get<SkPaint>(record.fPaint).setColor(style.getColor());
601 SkASSERT(nearlyEqual(context.run->baselineShift(), style.getBaselineShift()));
602 SkScalar correctedBaseline = SkScalarFloorToScalar(this->baseline() + style.getBaselineShift() + 0.5);
668 const TextStyle& style,
670 if (style.hasBackground()) {
672 style.getBackgroundPaintOrID());
713 const TextStyle& style,
715 SkScalar correctedBaseline = SkScalarFloorToScalar(this->baseline() + style.getBaselineShift() + 0.5);
717 for (TextShadow shadow : style.getShadows()) {
750 SkScalar TextLine::calculateThickness(const TextStyle& style, const ClipContext& content)
753 return decoration.calculateThickness(style, content);
756 void TextLine::paintDecorations(ParagraphPainter* painter, SkScalar x, SkScalar y, TextRange textRange, const TextStyle& style, const ClipContext& context) const {
758 painter->translate(x + this->offset().fX, y + this->offset().fY + style.getBaselineShift());
761 SkScalar correctedBaseline = SkScalarFloorToScalar(-this->sizes().rawAscent() + style.getBaselineShift() + 0.5);
762 decorations.paint(painter, style, context, correctedBaseline);
1460 // Extra efforts to get the ellipsis text style
1507 TextStyle* style = nullptr;
1516 // This style is not applicable to the text yet
1525 // Get the style
1526 style = &block->fStyle;
1527 if (start != EMPTY_INDEX && style->matchOneAttribute(styleType, *prevStyle)) {
1534 prevStyle = style;
1541 // This is the last style
1546 // We have the style and the text
1575 prevStyle = style;
1767 // Fill out the style parts
1781 [&result, &run](TextRange textRange, const TextStyle& style, const ClipContext& context) {
1794 StyleMetrics styleMetrics(&style, fontMetrics);
1836 (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& lineContext) {
2053 (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context0) {