@@ -609,7 +609,7 @@ class WidgetFactory extends WidgetFactoryResetter with AnchorWidgetFactory {
609609 case kTagA:
610610 if (attrs.containsKey (kAttributeAHref)) {
611611 tree
612- ..apply <BuildContext ?>(TagA .defaultColor, null )
612+ ..styleBuilder. enqueue <BuildContext ?>(TagA .defaultColor)
613613 ..register (_tagA ?? = TagA (this ).buildOp);
614614 }
615615
@@ -672,14 +672,16 @@ class WidgetFactory extends WidgetFactoryResetter with AnchorWidgetFactory {
672672
673673 case 'b' :
674674 case 'strong' :
675- tree.apply (TextStyleOps .fontWeight, FontWeight .bold);
675+ tree.styleBuilder. enqueue (TextStyleOps .fontWeight, FontWeight .bold);
676676 break ;
677677
678678 case 'big' :
679- tree.apply (TextStyleOps .fontSizeTerm, kCssFontSizeLarger);
679+ tree.styleBuilder
680+ .enqueue (TextStyleOps .fontSizeTerm, kCssFontSizeLarger);
680681 break ;
681682 case 'small' :
682- tree.apply (TextStyleOps .fontSizeTerm, kCssFontSizeSmaller);
683+ tree.styleBuilder
684+ .enqueue (TextStyleOps .fontSizeTerm, kCssFontSizeSmaller);
683685 break ;
684686
685687 case kTagBr:
@@ -701,14 +703,14 @@ class WidgetFactory extends WidgetFactoryResetter with AnchorWidgetFactory {
701703 case 'em' :
702704 case 'i' :
703705 case 'var' :
704- tree.apply (TextStyleOps .fontStyle, FontStyle .italic);
706+ tree.styleBuilder. enqueue (TextStyleOps .fontStyle, FontStyle .italic);
705707 break ;
706708
707709 case kTagCode:
708710 case kTagKbd:
709711 case kTagSamp:
710712 case kTagTt:
711- tree.apply (
713+ tree.styleBuilder. enqueue (
712714 TextStyleOps .fontFamily,
713715 const [kTagCodeFont1, kTagCodeFont2],
714716 );
@@ -985,26 +987,26 @@ class WidgetFactory extends WidgetFactoryResetter with AnchorWidgetFactory {
985987 case kCssColor:
986988 final color = tryParseColor (style.value);
987989 if (color != null ) {
988- tree.apply (TextStyleOps .color, color);
990+ tree.styleBuilder. enqueue (TextStyleOps .color, color);
989991 }
990992 break ;
991993
992994 case kCssDirection:
993995 final term = style.term;
994996 if (term != null ) {
995- tree.apply (TextStyleOps .textDirection, term);
997+ tree.styleBuilder. enqueue (TextStyleOps .textDirection, term);
996998 }
997999 break ;
9981000
9991001 case kCssFontFamily:
10001002 final list = TextStyleOps .fontFamilyTryParse (style.values);
1001- tree.apply (TextStyleOps .fontFamily, list);
1003+ tree.styleBuilder. enqueue (TextStyleOps .fontFamily, list);
10021004 break ;
10031005
10041006 case kCssFontSize:
10051007 final value = style.value;
10061008 if (value != null ) {
1007- tree.apply (TextStyleOps .fontSize, value);
1009+ tree.styleBuilder. enqueue (TextStyleOps .fontSize, value);
10081010 }
10091011 break ;
10101012
@@ -1013,7 +1015,7 @@ class WidgetFactory extends WidgetFactoryResetter with AnchorWidgetFactory {
10131015 final fontStyle =
10141016 term != null ? TextStyleOps .fontStyleTryParse (term) : null ;
10151017 if (fontStyle != null ) {
1016- tree.apply (TextStyleOps .fontStyle, fontStyle);
1018+ tree.styleBuilder. enqueue (TextStyleOps .fontStyle, fontStyle);
10171019 }
10181020 break ;
10191021
@@ -1022,7 +1024,7 @@ class WidgetFactory extends WidgetFactoryResetter with AnchorWidgetFactory {
10221024 final fontWeight =
10231025 value != null ? TextStyleOps .fontWeightTryParse (value) : null ;
10241026 if (fontWeight != null ) {
1025- tree.apply (TextStyleOps .fontWeight, fontWeight);
1027+ tree.styleBuilder. enqueue (TextStyleOps .fontWeight, fontWeight);
10261028 }
10271029 break ;
10281030
@@ -1038,7 +1040,7 @@ class WidgetFactory extends WidgetFactoryResetter with AnchorWidgetFactory {
10381040 case kCssLineHeight:
10391041 final value = style.value;
10401042 if (value != null ) {
1041- tree.apply (
1043+ tree.styleBuilder. enqueue (
10421044 _styleBuilderLineHeight ?? = TextStyleOps .lineHeight (this ),
10431045 value,
10441046 );
@@ -1082,7 +1084,7 @@ class WidgetFactory extends WidgetFactoryResetter with AnchorWidgetFactory {
10821084 final whitespace =
10831085 term != null ? TextStyleOps .whitespaceTryParse (term) : null ;
10841086 if (whitespace != null ) {
1085- tree.apply (TextStyleOps .whitespace, whitespace);
1087+ tree.styleBuilder. enqueue (TextStyleOps .whitespace, whitespace);
10861088 }
10871089 break ;
10881090 }
0 commit comments