@@ -2798,7 +2798,7 @@ abstract class Paragraph {
27982798 /// This only returns a valid value if asserts are enabled, and must not be
27992799 /// used otherwise.
28002800 bool get debugDisposed;
2801- }
2801+ }
28022802
28032803@pragma ('vm:entry-point' )
28042804base class _NativeParagraph extends NativeFieldWrapperClass1 implements Paragraph {
@@ -3015,28 +3015,6 @@ abstract class ParagraphBuilder {
30153015 /// [Paragraph] .
30163016 factory ParagraphBuilder (ParagraphStyle style) = _NativeParagraphBuilder ;
30173017
3018- /// Whether the rounding hack enabled by default in SkParagraph and TextPainter
3019- /// is disabled.
3020- ///
3021- /// Do not rely on this getter as it exists for migration purposes only and
3022- /// will soon be removed.
3023- static bool get shouldDisableRoundingHack {
3024- return const bool .hasEnvironment ('SKPARAGRAPH_REMOVE_ROUNDING_HACK' )
3025- || _roundingHackDisabledInDebugMode;
3026- }
3027- static bool _roundingHackDisabledInDebugMode = true ;
3028-
3029- /// Only works in debug mode. Do not call this method as it is for migration
3030- /// purposes only and will soon be removed.
3031- static void setDisableRoundingHack (bool disableRoundingHack) {
3032- // bool.hasEnvironment does not work in internal tests so an additional flag
3033- // is needed for tests.
3034- assert (() {
3035- _roundingHackDisabledInDebugMode = disableRoundingHack;
3036- return true ;
3037- }());
3038- }
3039-
30403018 /// The number of placeholders currently in the paragraph.
30413019 int get placeholderCount;
30423020
@@ -3154,12 +3132,11 @@ base class _NativeParagraphBuilder extends NativeFieldWrapperClass1 implements P
31543132 style._fontSize ?? 0 ,
31553133 style._height ?? 0 ,
31563134 style._ellipsis ?? '' ,
3157- _encodeLocale (style._locale),
3158- ! ParagraphBuilder .shouldDisableRoundingHack,
3135+ _encodeLocale (style._locale)
31593136 );
31603137 }
31613138
3162- @Native < Void Function (Handle , Handle , Handle , Handle , Handle , Double , Double , Handle , Handle , Bool )> (symbol: 'ParagraphBuilder::Create' )
3139+ @Native < Void Function (Handle , Handle , Handle , Handle , Handle , Double , Double , Handle , Handle )> (symbol: 'ParagraphBuilder::Create' )
31633140 external void _constructor (
31643141 Int32List encoded,
31653142 ByteData ? strutData,
@@ -3168,8 +3145,7 @@ base class _NativeParagraphBuilder extends NativeFieldWrapperClass1 implements P
31683145 double fontSize,
31693146 double height,
31703147 String ellipsis,
3171- String locale,
3172- bool applyRoundingHack);
3148+ String locale);
31733149
31743150 @override
31753151 int get placeholderCount => _placeholderCount;
0 commit comments