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

Conversation

@mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Nov 5, 2020

Description

Introduce a new Paragraph implementation that doesn't rely on DOM as an internal representation. The new implementation is still WIP for now, and will be implemented incrementally over multiple PRs.

Related Issues

flutter/flutter#55587

@mdebbar mdebbar added the platform-web Code specifically for the web engine label Nov 5, 2020
@mdebbar mdebbar requested a review from ferhatb November 5, 2020 00:02
@google-cla google-cla bot added the cla: yes label Nov 5, 2020
final int placeholderCount;

@override
double width = -1.0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add comment on why -1.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

-1 is the default value in the native engine for non-laid-out paragraph. Added a comment.

return domElement.clone(true) as html.HtmlElement;
}

html.HtmlElement _createDomElement() {
Copy link
Contributor

Choose a reason for hiding this comment

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

tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a TODO. Will add in the next PR.

@mdebbar mdebbar added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Nov 6, 2020
@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Linux Host Engine has failed. Please fix the issues identified (or deflake) before re-applying this label.

@fluttergithubbot fluttergithubbot removed the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Nov 6, 2020
@mdebbar mdebbar merged commit d3c0727 into flutter:master Nov 6, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 6, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 7, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 7, 2020
chaselatta pushed a commit to chaselatta/engine that referenced this pull request Nov 30, 2020
@mdebbar mdebbar deleted the split_paragraph branch April 15, 2021 17:36
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.

3 participants