Skip to content

Conversation

@jacob314
Copy link
Contributor

@jacob314 jacob314 commented Jun 1, 2017

No description provided.

@jacob314 jacob314 requested a review from Hixie June 1, 2017 15:42
@jacob314
Copy link
Contributor Author

jacob314 commented Jun 1, 2017

No changes to the method other than promoting it to the base class as it is convenient for all RenderObject instances.

assert(child.parent == this);
}

/// Returns a matrix that maps the local coordinate system to the coordinate
Copy link
Contributor

Choose a reason for hiding this comment

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

As documented, this doesn't really make sense. e.g. RenderSlivers and RenderSectors don't use the cartesian coordinate system for layout, so it's not clear what a Matrix4 means.

The fix, I think, is just to change the documentation to clarify that this refers to the paint coordinate system, and that specifically this is just applying applyPaintTransform up the tree.

Copy link
Contributor Author

@jacob314 jacob314 Jun 1, 2017

Choose a reason for hiding this comment

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

Updated comment. Not 100% thrilled with the result so please let me know if you have a suggestion that reads better.

@Hixie
Copy link
Contributor

Hixie commented Jun 1, 2017

Can you add a test that this works for non-box render objects?

With a test and the fix to the documentation, LGTM.

@jacob314
Copy link
Contributor Author

jacob314 commented Jun 1, 2017

Added a test and updated the comment.

@Hixie
Copy link
Contributor

Hixie commented Jun 7, 2017

LGTM

@Hixie
Copy link
Contributor

Hixie commented Jun 12, 2017

@jacob314 Is this ready to land?

@Hixie
Copy link
Contributor

Hixie commented Jun 17, 2017

There seems to be no reason not to land this so I'm landing it.

@Hixie Hixie merged commit 28fd54c into flutter:master Jun 17, 2017
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jul 1, 2017
…0430)

* move getTransformTo method from RenderBox to RenderObject.

* Cleanup comment. Add slivers test.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants