Skip to content
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

Apply a basis change on the perspective transform. #3173

Merged
merged 1 commit into from
Oct 5, 2018

Conversation

staktrace
Copy link
Contributor

@staktrace staktrace commented Oct 5, 2018

When applying async scrolling transforms, the perspective matrix also
needs to be adjusted with a basis change. This is a version of #3154
that doesn't break async scrolling on 2D-transformed elements. Although
this passes the required test cases and displays correct behaviour,
the intuition behind why this works is not really clear to me; see
https://bugzilla.mozilla.org/show_bug.cgi?id=1415272#c23 onwards for
some discussion.


This change is Reviewable

When applying async scrolling transforms, the perspective matrix also
needs to be adjusted with a basis change. This is a version of servo#3154
that doesn't break async scrolling on 2D-transformed elements. Although
this passes the required test cases and displays correct behaviour,
the intuition behind why this works is not really clear to me; see
https://bugzilla.mozilla.org/show_bug.cgi?id=1415272#c23 onwards for
some discussion.
@staktrace
Copy link
Contributor Author

@Gankra
Copy link
Contributor

Gankra commented Oct 5, 2018

@bors-servo r+

let's see if this is The One!

@bors-servo
Copy link
Contributor

📌 Commit 735a563 has been approved by Gankro

@bors-servo
Copy link
Contributor

⌛ Testing commit 735a563 with merge d84c919...

bors-servo pushed a commit that referenced this pull request Oct 5, 2018
Apply a basis change on the perspective transform.

When applying async scrolling transforms, the perspective matrix also
needs to be adjusted with a basis change. This is a version of #3154
that doesn't break async scrolling on 2D-transformed elements. Although
this passes the required test cases and displays correct behaviour,
the intuition behind why this works is not really clear to me; see
https://bugzilla.mozilla.org/show_bug.cgi?id=1415272#c23 onwards for
some discussion.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/3173)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: Gankro
Pushing d84c919 to master...

@bors-servo bors-servo merged commit 735a563 into servo:master Oct 5, 2018
@staktrace staktrace deleted the parallax branch October 5, 2018 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants