@@ -169,7 +169,7 @@ fml::RefPtr<ParagraphBuilder> ParagraphBuilder::create(
169
169
// parameter passed directly.
170
170
void decodeStrut (Dart_Handle strut_data,
171
171
const std::vector<std::string>& strut_font_families,
172
- txt::ParagraphStyle& paragraph_style) { // NOLINT
172
+ txt::ParagraphStyle& paragraph_style) { // NOLINT
173
173
if (strut_data == Dart_Null ()) {
174
174
return ;
175
175
}
@@ -305,8 +305,9 @@ ParagraphBuilder::ParagraphBuilder(
305
305
306
306
ParagraphBuilder::~ParagraphBuilder () = default ;
307
307
308
- void decodeTextShadows (Dart_Handle shadows_data,
309
- std::vector<txt::TextShadow>& decoded_shadows) { // NOLINT
308
+ void decodeTextShadows (
309
+ Dart_Handle shadows_data,
310
+ std::vector<txt::TextShadow>& decoded_shadows) { // NOLINT
310
311
decoded_shadows.clear ();
311
312
312
313
tonic::DartByteData byte_data (shadows_data);
@@ -330,7 +331,7 @@ void decodeTextShadows(Dart_Handle shadows_data,
330
331
}
331
332
332
333
void decodeFontFeatures (Dart_Handle font_features_data,
333
- txt::FontFeatures& font_features) { // NOLINT
334
+ txt::FontFeatures& font_features) { // NOLINT
334
335
tonic::DartByteData byte_data (font_features_data);
335
336
FML_CHECK (byte_data.length_in_bytes () % kBytesPerFontFeature == 0 );
336
337
@@ -403,23 +404,23 @@ void ParagraphBuilder::pushStyle(tonic::Int32List& encoded,
403
404
if (mask & tsFontWeightMask) {
404
405
style.font_weight =
405
406
static_cast <txt::FontWeight>(encoded[tsFontWeightIndex]);
406
- }
407
+ }
407
408
408
409
if (mask & tsFontStyleMask) {
409
410
style.font_style = static_cast <txt::FontStyle>(encoded[tsFontStyleIndex]);
410
- }
411
+ }
411
412
412
413
if (mask & tsFontSizeMask) {
413
414
style.font_size = fontSize;
414
- }
415
+ }
415
416
416
417
if (mask & tsLetterSpacingMask) {
417
418
style.letter_spacing = letterSpacing;
418
- }
419
+ }
419
420
420
421
if (mask & tsWordSpacingMask) {
421
422
style.word_spacing = wordSpacing;
422
- }
423
+ }
423
424
}
424
425
425
426
if (mask & tsHeightMask) {
@@ -472,7 +473,7 @@ void ParagraphBuilder::pop() {
472
473
Dart_Handle ParagraphBuilder::addText (const std::u16string& text) {
473
474
if (text.empty ()) {
474
475
return Dart_Null ();
475
- }
476
+ }
476
477
477
478
// Use ICU to validate the UTF-16 input. Calling u_strToUTF8 with a null
478
479
// output buffer will return U_BUFFER_OVERFLOW_ERROR if the input is well
@@ -482,7 +483,7 @@ Dart_Handle ParagraphBuilder::addText(const std::u16string& text) {
482
483
u_strToUTF8 (nullptr , 0 , nullptr , text_ptr, text.size (), &error_code);
483
484
if (error_code != U_BUFFER_OVERFLOW_ERROR) {
484
485
return tonic::ToDart (" string is not well-formed UTF-16" );
485
- }
486
+ }
486
487
487
488
m_paragraphBuilder->AddText (text);
488
489
0 commit comments