Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c43fd28

Browse files
committed
revert 'minor streamlining of paragraph SkPaint construction'
1 parent 107adc4 commit c43fd28

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/ui/text/paragraph_builder.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,16 +453,18 @@ void ParagraphBuilder::pushStyle(tonic::Int32List& encoded,
453453
if (mask & tsBackgroundMask) {
454454
Paint background(background_objects, background_data);
455455
if (background.isNotNull()) {
456+
SkPaint sk_paint;
456457
style.has_background = true;
457-
FML_CHECK(background.paint(style.background));
458+
style.background = *background.paint(sk_paint);
458459
}
459460
}
460461

461462
if (mask & tsForegroundMask) {
462463
Paint foreground(foreground_objects, foreground_data);
463464
if (foreground.isNotNull()) {
465+
SkPaint sk_paint;
464466
style.has_foreground = true;
465-
FML_CHECK(foreground.paint(style.foreground));
467+
style.foreground = *foreground.paint(sk_paint);
466468
}
467469
}
468470

0 commit comments

Comments
 (0)