X Tutup
The Wayback Machine - https://web.archive.org/web/20230614170639/https://github.com/flutter/flutter/pull/128467
Skip to content
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

Inline AbstractNode into SemanticsNode and Layer #128467

Merged
merged 6 commits into from Jun 14, 2023

Conversation

goderbauer
Copy link
Member

@goderbauer goderbauer commented Jun 7, 2023

The goal is to ultimately remove AbstractNode from the code base.

Next up: Removing it from RenderObject.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@github-actions github-actions bot added a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) framework flutter/packages/flutter repository. See also f: labels. labels Jun 7, 2023
@goderbauer goderbauer force-pushed the removeAbstractNodeFromSemantics branch from 1f939f1 to 56312a9 Compare June 7, 2023 23:15
@goderbauer goderbauer force-pushed the removeAbstractNodeFromSemantics branch from 56312a9 to c6d4b45 Compare June 13, 2023 17:43
@goderbauer goderbauer changed the title Inline AbstractNode into SemanticsNode Inline AbstractNode into SemanticsNode and Layer Jun 13, 2023
Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

much better than the approach I had taken of trying to make it generic.

/// [depth] will still be 2. Whenever a new node is added to the tree or a node
/// is moved around in the tree, [redepthChild] must be called to re-calculate
/// the [depth] of the child and its children.
mixin DepthNode {
Copy link
Member

Choose a reason for hiding this comment

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

this is such a small amount of trivial code that i would just inline it into the various class hierarchies that use it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good, inlined it all. Can you take another look?

@goderbauer goderbauer requested a review from Hixie June 13, 2023 22:39
@goderbauer goderbauer added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 13, 2023
@goderbauer goderbauer merged commit 16e6be8 into flutter:master Jun 14, 2023
72 checks passed
@goderbauer goderbauer deleted the removeAbstractNodeFromSemantics branch June 14, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants
X Tutup