-
Notifications
You must be signed in to change notification settings - Fork 28.7k
RenderParagraph
should invalidate its _SelectableFragment
s cached rects on window size updates
#155719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RenderParagraph
should invalidate its _SelectableFragment
s cached rects on window size updates
#155719
Conversation
_SelectableFragment
s cached rects on window size change_SelectableFragment
s cached rects on window size updates
_SelectableFragment
s cached rects on window size updatesRenderParagraph
should invalidate its _SelectableFragment
s cached rects on window size updates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@@ -809,6 +809,7 @@ class RenderParagraph extends RenderBox with ContainerRenderObjectMixin<RenderBo | |||
|
|||
@override | |||
void performLayout() { | |||
_lastSelectableFragments?.forEach((_SelectableFragment element) => element.didChangeParagraphLayout()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this happen at the end of performLayout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be fine here, since all we do is null
the _cachedRect
. We also call this at the beginning of markNeedsLayout
, but that doesn't catch cases where the window resizes.
await gesture.up(); | ||
await tester.pumpAndSettle(); | ||
}, variant: TargetPlatformVariant.all(), | ||
skip: kIsWeb); // https://github.com/flutter/flutter/issues/125582. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Closing parenthesis on the next line I think?
01eec26
to
de7efe5
Compare
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
…7806) Manual roll requested by [email protected] flutter/flutter@fa402c8...ead6b0d 2024-09-27 [email protected] Remove left-over traces of "link-dry-run" - which isn't used anywhere in flutter (flutter/flutter#155820) 2024-09-27 [email protected] Roll Flutter Engine from e57b440ec4ee to 7c603de2dca7 (5 revisions) (flutter/flutter#155811) 2024-09-27 [email protected] Fix DropdownMenu rendered behind AppBar (flutter/flutter#155539) 2024-09-27 [email protected] Roll Flutter Engine from 53517772a5b0 to e57b440ec4ee (8 revisions) (flutter/flutter#155799) 2024-09-27 [email protected] Throw StateError when implicitView is null on `wrapWithDefaultView`. (flutter/flutter#155734) 2024-09-27 [email protected] Roll packages manually (flutter/flutter#155786) 2024-09-27 [email protected] fix: SelectableText should handle focus changes (flutter/flutter#155771) 2024-09-27 [email protected] Use flutter from in same repo (not path) in `generate_gradle_lockfiles.dart` (again) (flutter/flutter#155794) 2024-09-26 [email protected] Use flutter from in same repo (not path) in `generate_gradle_lockfiles.dart` (flutter/flutter#155790) 2024-09-26 [email protected] `RenderParagraph` should invalidate its `_SelectableFragment`s cached rects on window size updates (flutter/flutter#155719) 2024-09-26 [email protected] Fix broken text field with set hint and min and max lines(#153183) (flutter/flutter#153235) 2024-09-26 [email protected] Roll Flutter Engine from 9e6133e8d906 to 53517772a5b0 (1 revision) (flutter/flutter#155772) 2024-09-26 [email protected] Fix line-wrapping in `flutter create` error message. (flutter/flutter#150325) 2024-09-26 [email protected] remove fujino from CODEOWNERS (flutter/flutter#155369) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…t`s cached rects on window size updates (flutter/flutter#155719)
…t`s cached rects on window size updates (flutter/flutter#155719)
Fixes #155143
Fixes #120578
Pre-launch Checklist
///
).