-
Notifications
You must be signed in to change notification settings - Fork 306
Add scrolling support to wrench #806
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
This parameter will instruct servo to either discard or preserve frame data for the given pipeline. Discarded frame data includes scroll positions and the currently scrolling layer. This makes it so that unrelated frames won't inadvertently share scroll positions.
b9b4c80 to
1884cd0
Compare
|
Looks like I inadvertently broke the sample app. I've fixed that now. @jrmuizel, is it okay to send this to bors again? |
This change adds scroll layer as an item type in wrench and allows setting a scroll offset for them as well as the root. Additionally, some basic scrolling tests are included to help establish some basic principles of scrolling behavior.
1884cd0 to
5233df6
Compare
|
One more quick update to the PR that properly supports writing scroll-policy in the YAML writer. |
|
The changes from the originally reviewed patch were very minor, so I feel pretty confident landing this to avoid timezone induced +1 day lag. |
|
@bors-servo r=jrmuizel |
|
📌 Commit 5233df6 has been approved by |
|
⚡ Test exempted - status |
Add scrolling support to wrench This PR includes two commits: - The first modifies the API of WebRender to instruct it to throw away scrolling offsets during changes to unrelated display lists. In the future this will need to be more complicated to handle back and forward navigation. - The second adds scroll layers and scroll-offset to wrench itself in order to allow tests of scrolling behavior. <!-- 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/806) <!-- Reviewable:end -->
This PR includes two commits:
This change is