Skip to content

Conversation

@mrobinson
Copy link
Member

@mrobinson mrobinson commented Jan 30, 2017

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.

This change is Reviewable

@mrobinson
Copy link
Member Author

cc @jrmuizel @glennw @gterzian

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.
@mrobinson
Copy link
Member Author

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.
@mrobinson
Copy link
Member Author

One more quick update to the PR that properly supports writing scroll-policy in the YAML writer.

@mrobinson
Copy link
Member Author

The changes from the originally reviewed patch were very minor, so I feel pretty confident landing this to avoid timezone induced +1 day lag.

@mrobinson
Copy link
Member Author

@bors-servo r=jrmuizel

@bors-servo
Copy link
Contributor

📌 Commit 5233df6 has been approved by jrmuizel

@bors-servo
Copy link
Contributor

⚡ Test exempted - status

@bors-servo bors-servo merged commit 5233df6 into servo:master Jan 30, 2017
bors-servo pushed a commit that referenced this pull request Jan 30, 2017
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 -->
@mrobinson mrobinson deleted the wrench-scrolling branch February 6, 2017 08:18
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