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

[web] Render RTL text correctly #26811

Merged
merged 11 commits into from
Jun 29, 2021
Merged

[web] Render RTL text correctly #26811

merged 11 commits into from
Jun 29, 2021

Conversation

mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Jun 17, 2021

Implement handling of bidi text in the html renderer.

Goldens: flutter/goldens#205
Golden updates: flutter/goldens#210

Fixes flutter/flutter#69396
Fixes flutter/flutter#32239
Fixes flutter/flutter#78550
Fixes flutter/flutter#82136

@mdebbar mdebbar added the platform-web Code specifically for the web engine label Jun 17, 2021
@mdebbar mdebbar requested a review from yjbanov June 17, 2021 21:44
@google-cla google-cla bot added the cla: yes label Jun 17, 2021

LineBreakType get type => lineBreak.type;

/// Creates a copy of this [DirectionalPosition] with a different [index].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and LineBreakType.prohibited.

Speaking of which, why does it unconditionally set prohibited?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, we don't want to break anywhere, except where nextLineBreak() says it's ok to break.

l('baz', 8, 11, hardBreak: true, width: 30.0, left: 0.0, height: 10.0, baseline: 18.0),
]);
});
// test('no text', () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the plan for these tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! They should be fine. I just forgot to uncomment them.

@mdebbar mdebbar requested a review from yjbanov June 24, 2021 22:04
Copy link
Contributor

@yjbanov yjbanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 30, 2021
bdero pushed a commit to flutter/flutter that referenced this pull request Jun 30, 2021
* 36a247f Temporarily opt out of reduced shaders variants till roll issues are resolved. (flutter/engine#27048)

* b06ff83 [web] Render RTL text correctly (flutter/engine#26811)

* 3283caf --sound-null-safety instead of enable-experiment where possible (flutter/engine#26999)

* e10490d Roll Fuchsia Linux SDK from qq5J5tHIA... to eMHAbJpmO... (flutter/engine#27049)

* 15ed6a0 Removes the licence sheck from cirrus (flutter/engine#27051)

* 6d8a01a Roll Skia from 62ce2488f744 to c6804edbaefc (4 revisions) (flutter/engine#27050)

* e8339ed Fix use-after-free. (flutter/engine#27053)

* ecd4a14 Roll Dart SDK from 5103185fdff6 to 9d7c40ba84c4 (1 revision) (flutter/engine#27054)

* 2e86f4b Roll Skia from c6804edbaefc to 55b401ed9e6c (1 revision) (flutter/engine#27055)

* 6136cbd Give FlutterView a view ID (flutter/engine#27052)

* 05fe2e2 Revert "--sound-null-safety instead of enable-experiment where possible (#26999)" (flutter/engine#27059)

* c633b2a Roll Dart SDK from 9d7c40ba84c4 to d01a840fa25b (1 revision) (flutter/engine#27058)
moffatman pushed a commit to moffatman/engine that referenced this pull request Aug 5, 2021
naudzghebre pushed a commit to naudzghebre/engine that referenced this pull request Sep 2, 2021
justinmc added a commit to justinmc/engine that referenced this pull request Sep 9, 2021
@armantorkzaban armantorkzaban mentioned this pull request Dec 4, 2022
8 tasks
@mdebbar mdebbar deleted the rich_rtl branch January 17, 2023 18:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes platform-web Code specifically for the web engine
Projects
None yet
2 participants