Skip to content

Remove semantics boundary from gesture detector AND MORE #13983

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

Merged
merged 8 commits into from
Jan 9, 2018

Conversation

goderbauer
Copy link
Member

RenderSemanticsGestureHandler is no longer a semantics boundary, which allows us to correctly mark disabled buttons as disabled without having their semantics size and semantics node id change unexpectedly.

Fixes #12589.
Fixes #11991.
See also #11993.

This change also required some refactoring to how we deal with twoPaneSemantics scrolling as it previously relied on RenderSemanticsGestureHandler being a semantics boundary. This should also make the underlying logic easier to understand.

In addition, the following minor changes are included in this PR:

  • Removal of orphaned and unused SemanticsConfiguration.isMergingDescendantsIntoOneNode.
  • Logic optimizations for markNeedsSemanticsUpdate .
  • Fix for edge case where MergeSemantics failed to merge semantics.
  • Use of emojis to better indicate leaf merging in the printed semantics tree.
  • Better assert message for adding invisible child semantics nodes.
  • Make some semantics tests robuster by not relying on creation order of SemanticsNode ids across test boundaries.

Fixes #13943.

@Hixie
Copy link
Contributor

Hixie commented Jan 9, 2018

LGTM

@goderbauer goderbauer merged commit 8a6e973 into flutter:master Jan 9, 2018
@goderbauer goderbauer deleted the semanticBoundary branch January 9, 2018 21:32
@goderbauer goderbauer added the a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) label Mar 5, 2018
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
`RenderSemanticsGestureHandler` is no longer a semantics boundary, which allows us to correctly mark disabled buttons as disabled without having their semantics size and semantics node id change unexpectedly.

Fixes flutter#12589.
Fixes flutter#11991.
See also flutter#11993.

This change also required some refactoring to how we deal with `twoPaneSemantics` scrolling as it previously relied on `RenderSemanticsGestureHandler` being a semantics boundary. This should also make the underlying logic easier to understand.

In addition, the following minor changes are included in this PR:
* Removal of orphaned and unused `SemanticsConfiguration.isMergingDescendantsIntoOneNode`.
* Logic optimizations for `markNeedsSemanticsUpdate` .
* Fix for edge case where `MergeSemantics` failed to merge semantics.
* Use of emojis to better indicate leaf merging in the printed semantics tree.
* Better assert message for adding invisible child semantics nodes.
* Make some semantics tests robuster by not relying on creation order of SemanticsNode ids across test boundaries.

Fixes flutter#13943.
iskakaushik pushed a commit to iskakaushik/flutter that referenced this pull request Nov 23, 2019
Following commits:

584d958 (HEAD -> master, upstream/master) [fuchsia] Capture SkRRect in scene_update_context by value (flutter#13989)
0f530a7 Roll src/third_party/skia 078e8faa26d8..47af12aa8331 (22 commits) (flutter#13987)
97a23a8 Made a way to turn off the OpenGL operations on the IO thread for backgrounded apps (flutter#13908)
0d60e1a Do not default to downstream affinity on iOS insertText (flutter#13852)
9c68366 Added auto-reviewer config file (flutter#13962)
a5f4290 Roll fuchsia/sdk/core/linux-amd64 from mvesW... to _7JyV... (flutter#13983)
69f94a5 Roll src/third_party/dart 029e06b8d9..5b5f34f2e6 (10 commits) (flutter#13982)
iskakaushik added a commit that referenced this pull request Nov 23, 2019
584d958 (HEAD -> master, upstream/master) [fuchsia] Capture SkRRect in scene_update_context by value (#13989)
0f530a7 Roll src/third_party/skia 078e8faa26d8..47af12aa8331 (22 commits) (#13987)
97a23a8 Made a way to turn off the OpenGL operations on the IO thread for backgrounded apps (#13908)
0d60e1a Do not default to downstream affinity on iOS insertText (#13852)
9c68366 Added auto-reviewer config file (#13962)
a5f4290 Roll fuchsia/sdk/core/linux-amd64 from mvesW... to _7JyV... (#13983)
69f94a5 Roll src/third_party/dart 029e06b8d9..5b5f34f2e6 (10 commits) (#13982)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)
Projects
None yet
3 participants