Skip to content

Fix composited transform bounds calculations#6302

Merged
abarth merged 1 commit intoflutter:masterfrom
abarth:fix_transforms
Oct 13, 2016
Merged

Fix composited transform bounds calculations#6302
abarth merged 1 commit intoflutter:masterfrom
abarth:fix_transforms

Conversation

@abarth
Copy link
Contributor

@abarth abarth commented Oct 13, 2016

We weren't computing the bounds for composited transforms correctly. We
need to conjugate the transform by the offset in order to get the
correct paint bounds for the composited layer. We now also use the same
math in the non-composited case for consistency.

Also, don't scale the z-coordinate in RenderFittedBox.

Fixes #6293

@abarth
Copy link
Contributor Author

abarth commented Oct 13, 2016

Still needs tests.

@Hixie
Copy link
Contributor

Hixie commented Oct 13, 2016

LGTM once there are 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.

We do want the inverse transform.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Turns out transformRect was doing the inverse transform already, which is why it worked. :)

We weren't computing the bounds for composited transforms correctly. We
need to conjugate the transform by the offset in order to get the
correct paint bounds for the composited layer. We now also use the same
math in the non-composited case for consistency.

Also, don't scale the z-coordinate in RenderFittedBox.

Fixes flutter#6293
@abarth abarth merged commit 3b56f12 into flutter:master Oct 13, 2016
@abarth abarth deleted the fix_transforms branch October 13, 2016 22:00
GaryQian added a commit that referenced this pull request Sep 22, 2018
Unbreak build.

git log a8890fd..cc3009c --no-merges --oneline
cc3009c Revert 'Dart SDK roll for 2018/09/20' 8471862 (#6309)
bbdf7c1 Revert "Fix a compilation problem when using iPhoneOS12.0sdk(Xcode10) && clang version 7.0.0." (#6307)
dea0921 Roll src/third_party/skia c25f440d537e..358558a4cecc (17 commits) (#6308)
d29c7db Add logging if FlutterDartProject fails to load the application kernel snapshot (#6257)
2a1debf Update deprecated subtags from language subtag registry. (#6280)
540cd96 Add Xib splashscreen support (#6289)
05f21e6 (main) Fix a compilation problem when using iPhoneOS12.0sdk(Xcode10) && clang version 7.0.0. (#6279)
ca6f103 Roll src/third_party/skia d842557c0724..c25f440d537e (10 commits) (#6304)
3b46705 Roll src/third_party/skia 38ca6d509d9f..d842557c0724 (5 commits) (#6302)
0c166fe Roll src/third_party/skia 05cf051f0252..38ca6d509d9f (1 commits) (#6301)
cf0fbad Roll src/third_party/skia 44c6167c4125..05cf051f0252 (4 commits) (#6299)
2ec20aa Remove bottom safe-area padding when keyboard up (#6297)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 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.

FittedBox Clipping issues

2 participants