Skip to content

Make Element tree root generic - #123352

Merged
auto-submit[bot] merged 3 commits into
flutter:masterfrom
goderbauer:genericElementRoot
Mar 27, 2023
Merged

Make Element tree root generic#123352
auto-submit[bot] merged 3 commits into
flutter:masterfrom
goderbauer:genericElementRoot

Conversation

@goderbauer

@goderbauergoderbauer commented Mar 23, 2023

Copy link
Copy Markdown
Member

Part of #121573.

This change allows the root of the element tree to be any Element (not just a RenderObjectElement). For that, it introduces the RootElementMixin, which can be used to make any Element subclass the root of the element tree. It replaces the RootRenderObjectElement, which is now deprecated in favor of the new mixin. In addition to that, it renames the renderViewElement accessor on the WidgetsBinding to rootElement to remove the implied assumption that the root is a RenderObjectElement.

This is in preparation for further changes towards multi-view rendering, where the root of the element tree will not be backed by render objects, see https://docs.flutter.dev/go/multiple-views for the details of that.

@flutter-dashboardflutter-dashboardBot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. c: contributor-productivity Team-specific productivity, code health, technical debt. c: tech-debt Technical debt, code quality, testing, etc. labels Mar 23, 2023
@goderbauer
goderbauer marked this pull request as ready for review March 23, 2023 20:27
@goderbauer

Copy link
Copy Markdown
MemberAuthor

The fix for the flutter_plugins check is flutter/packages#3539.

@gspencergooggspencergoog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You could also mention that it is no longer used by Flutter.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Added.

@goderbauer

Copy link
Copy Markdown
MemberAuthor

flutter/packages#3539 has rolled into the framework in #123542.

@goderbauergoderbauer added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 27, 2023
@auto-submitauto-submitBot removed the autosubmit Merge PR when tree becomes green via auto submit App label Mar 27, 2023
@auto-submit

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/flutter, pr: 123352, due to - The status or check suite Linux customer_testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@goderbauer

Copy link
Copy Markdown
MemberAuthor

customer_testing failures are (unrelated) flakes hopefully fixed with flutter/tests#239.

@goderbauergoderbauer added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 27, 2023
@auto-submitauto-submitBot removed the autosubmit Merge PR when tree becomes green via auto submit App label Mar 27, 2023
@auto-submit

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/flutter, pr: 123352, due to - The status or check suite customer_testing-linux has failed. Please fix the issues identified (or deflake) before re-applying this label.

@goderbauergoderbauer added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 27, 2023
@auto-submit
auto-submitBot merged commit 48bb12d into flutter:masterMar 27, 2023
@goderbauer
goderbauer deleted the genericElementRoot branch March 27, 2023 20:31
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 28, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 28, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 28, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 28, 2023
@reidbakerreidbaker mentioned this pull request Mar 28, 2023
8 tasks
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests"flutter test", flutter_test, or one of our testsautosubmitMerge PR when tree becomes green via auto submit Appc: contributor-productivityTeam-specific productivity, code health, technical debt.c: tech-debtTechnical debt, code quality, testing, etc.frameworkflutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@goderbauer@gspencergoog