Skip to content

Replace ServoStackingContextId with ServoScrollRootId #467

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

Merged
merged 2 commits into from
Oct 26, 2016

Conversation

mrobinson
Copy link
Member

@mrobinson mrobinson commented Oct 24, 2016

This change is Reviewable

@mrobinson
Copy link
Member Author

@glennw r?

Copy link
Member

@glennw glennw left a comment

Choose a reason for hiding this comment

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

This looks good to me (just the one question / change). However, since this changes API it probably makes sense to hold off on merging it until I land the last WR update, which is blocked on a 1-pixel accuracy issue in the filter shader. I'll try and get that sorted today.

@@ -397,13 +397,13 @@ pub struct ScrollLayerId {
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
pub enum ScrollLayerInfo {
Fixed,
Scrollable(usize)
Scrollable(usize, ServoScrollRootId)
Copy link
Member

Choose a reason for hiding this comment

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

Should we just call this ScrollRootId instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hrm. I'm not sure. I kept the same naming scheme as ServoStackingContextId in the off-chance that WebRender also grew an understanding (and an id) for ScrollRoots. I guess we can land this PR and then investigate later once my first round of work is complete.

@glennw
Copy link
Member

glennw commented Oct 25, 2016

@mrobinson OK, the WR update in master has landed. So feel free to merge this when you have the corresponding servo update ready.

@mrobinson
Copy link
Member Author

@bors-servo r=glennw

@bors-servo
Copy link
Contributor

📌 Commit a27cf24 has been approved by glennw

@bors-servo
Copy link
Contributor

⌛ Testing commit a27cf24 with merge 2e451c7...

bors-servo pushed a commit that referenced this pull request Oct 25, 2016
Replace ServoStackingContextId with ServoScrollRootId

<!-- 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/467)
<!-- Reviewable:end -->
@mrobinson
Copy link
Member Author

The Servo part of this change is here: https://github.com/mrobinson/servo/tree/scroll_id

@bors-servo
Copy link
Contributor

💔 Test failed - status-travis

@mrobinson
Copy link
Member Author

The issue seems to be with the rayon compilation:

/home/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-0.4.3/src/par_iter/internal.rs:96:47: 96:48 error: no rules expected the token `;`
/home/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-0.4.3/src/par_iter/internal.rs:96         thread_local!{ static ID: bool = false; }
                                                                                                                                                   ^

@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #445) made this pull request unmergeable. Please resolve the merge conflicts.

@glennw
Copy link
Member

glennw commented Oct 26, 2016

@mrobinson The CI-related issues have been resolved, but this will need to be rebased then it should be fine to land.

Since scrolling is being disassociated from stacking contexts in Servo,
this change introduces ScrollRootId from Servo into WebRender.
This is necessary because the API has changed in a backwards
incompatible way.
@mrobinson
Copy link
Member Author

@glennw Thanks. I'll try this one more time.

@mrobinson
Copy link
Member Author

@bors-servo retry

@emilio
Copy link
Member

emilio commented Oct 26, 2016

@bors-servo: r=glennw

@bors-servo
Copy link
Contributor

📌 Commit bb1b817 has been approved by glennw

@bors-servo
Copy link
Contributor

⚡ Test exempted - status

@bors-servo bors-servo merged commit bb1b817 into servo:master Oct 26, 2016
bors-servo pushed a commit that referenced this pull request Oct 26, 2016
Replace ServoStackingContextId with ServoScrollRootId

<!-- 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/467)
<!-- Reviewable:end -->
@mrobinson
Copy link
Member Author

@emilio Thanks!

@mrobinson mrobinson deleted the scroll_id branch October 26, 2016 11:43
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.

4 participants