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

Commit fcf6297

Browse files
authored
Revert "[web] Enable the new rich paragraph implementation (#23162)"
This reverts commit 51dd6aa.
1 parent a56183c commit fcf6297

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/web_ui/lib/src/engine/web_experiments.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class WebExperiments {
4545

4646
static const bool _defaultUseCanvasRichText = const bool.fromEnvironment(
4747
'FLUTTER_WEB_USE_EXPERIMENTAL_CANVAS_RICH_TEXT',
48-
defaultValue: true,
48+
defaultValue: false,
4949
);
5050

5151
bool _useCanvasRichText = _defaultUseCanvasRichText;

lib/web_ui/test/engine/web_experiments_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'package:test/test.dart';
1111
import 'package:ui/src/engine.dart';
1212

1313
const bool _defaultUseCanvasText = true;
14-
const bool _defaultUseCanvasRichText = true;
14+
const bool _defaultUseCanvasRichText = false;
1515

1616
void main() {
1717
internalBootstrapBrowserTest(() => testMain);

lib/web_ui/test/golden_tests/engine/compositing_golden_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,8 @@ void _testCullRectComputation() {
547547
'renders clipped text with high quality',
548548
() async {
549549
// To reproduce blurriness we need real clipping.
550-
final DomParagraph paragraph =
551-
(DomParagraphBuilder(ParagraphStyle(fontFamily: 'Roboto'))..addText('Am I blurry?')).build();
550+
final Paragraph paragraph =
551+
(ParagraphBuilder(ParagraphStyle(fontFamily: 'Roboto'))..addText('Am I blurry?')).build();
552552
paragraph.layout(const ParagraphConstraints(width: 1000));
553553

554554
final Rect canvasSize = Rect.fromLTRB(

0 commit comments

Comments
 (0)