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

[web] Correct getPositionForOffset for multi-line paragraphs #16206

Merged
merged 1 commit into from
Jan 30, 2020

Conversation

mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Jan 29, 2020

Fix the implementation of Paragraph.getPositionForOffset() by utilizing new line metrics information provided by the canvas-based measurement service.

Fixes flutter/flutter#32213

@mdebbar mdebbar added the platform-web Code specifically for the web engine label Jan 29, 2020
@mdebbar mdebbar requested a review from yjbanov January 29, 2020 21:30
@mdebbar mdebbar self-assigned this Jan 29, 2020
@mdebbar mdebbar merged commit 4ac82f6 into flutter:master Jan 30, 2020
jason-simmons added a commit to jason-simmons/flutter_engine that referenced this pull request Jan 30, 2020
…lutter#16206)"

This reverts commit 4ac82f6.

This caused a regression in a framework test (material/text_field_splash_test.dart)
jason-simmons added a commit that referenced this pull request Jan 31, 2020
…16206)" (#16268)

This reverts commit 4ac82f6.

This caused a regression in a framework test (material/text_field_splash_test.dart)
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Jan 31, 2020
flutter/engine@74d07b5...e520920

git log 74d07b5..e520920 --first-parent --oneline
2020-01-30 [email protected] Roll src/third_party/dart fc3af737c759..162d6c5634a0 (209 commits) (flutter/engine#16261)
2020-01-30 [email protected] Roll src/third_party/skia d1be5d64f8a7..36c0521d57de (13 commits) (flutter/engine#16260)
2020-01-30 [email protected] [web] Correct getPositionForOffset for multi-line paragraphs (flutter/engine#16206)
2020-01-30 [email protected] Roll fuchsia/sdk/core/linux-amd64 from -mGIA... to 93K0d... (flutter/engine#16257)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Jan 31, 2020
flutter/engine@74d07b5...804dca6

git log 74d07b5..804dca6 --first-parent --oneline
2020-01-31 [email protected] Use bundled Roboto in all tests (flutter/engine#16218)
2020-01-31 [email protected] Revert "Migrate flutter_runner from flutter_runner::{Thread,Loop} to fml::{Thread,MessageLoop} (#15118)" (flutter/engine#16277)
2020-01-31 [email protected] Roll src/third_party/skia 36c0521d57de..6305b2f8342a (8 commits) (flutter/engine#16272)
2020-01-31 [email protected] Revert "[web] Correct getPositionForOffset for multi-line paragraphs (#16206)" (flutter/engine#16268)
2020-01-30 [email protected] Fix Windows file checks of unicode paths (flutter/engine#16105)
2020-01-30 [email protected] [fuchsia] Fix the import for dart_api.h (flutter/engine#16269)
2020-01-30 [email protected] [fuchsia] SceneHostBindings are no longer thread locals (flutter/engine#16262)
2020-01-30 [email protected] Pass through invoker.resources in fuchsia_test_archive (flutter/engine#16265)
2020-01-30 [email protected] Notify PlatformViewsController within FlutterEngine when a hot restart occurs. (#48518) (flutter/engine#16230)
2020-01-30 [email protected] Roll src/third_party/dart fc3af737c759..162d6c5634a0 (209 commits) (flutter/engine#16261)
2020-01-30 [email protected] Roll src/third_party/skia d1be5d64f8a7..36c0521d57de (13 commits) (flutter/engine#16260)
2020-01-30 [email protected] [web] Correct getPositionForOffset for multi-line paragraphs (flutter/engine#16206)
2020-01-30 [email protected] Roll fuchsia/sdk/core/linux-amd64 from -mGIA... to 93K0d... (flutter/engine#16257)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
@jadolg
Copy link

jadolg commented Feb 3, 2020

Hi @mdebbar
I'm still having problems with the position of the cursor and the selection of text with the mouse after updating from master.
#12793 (comment)

@jadolg
Copy link

jadolg commented Feb 4, 2020

I created a new issue for this flutter/flutter#50101
Please take a look.

NoamDev pushed a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
NoamDev pushed a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
…lutter#16206)" (flutter#16268)

This reverts commit 4ac82f6.

This caused a regression in a framework test (material/text_field_splash_test.dart)
NoamDev pushed a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
NoamDev added a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
NoamDev added a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
NoamDev added a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
@mdebbar mdebbar deleted the position_for_offset branch April 15, 2021 17:43
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
Development

Successfully merging this pull request may close these issues.

Full support for multi-line text editing on web
4 participants