-
Notifications
You must be signed in to change notification settings - Fork 29.7k
move getTransformTo method from RenderBox to RenderObject. #10430
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
Conversation
|
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
Can you add a test that this works for non-box render objects? With a test and the fix to the documentation, LGTM. |
|
Added a test and updated the comment. |
|
@jacob314 Is this ready to land? |
|
There seems to be no reason not to land this so I'm landing it. |
…0430) * move getTransformTo method from RenderBox to RenderObject. * Cleanup comment. Add slivers test.
No description provided.