Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove external scroll ids from ClipId #2315
Conversation
06d643a
to
1a44de4
|
Please don't merge this until we have the gecko-side patch to go with it, as by itself it will block WR updating into gecko. Right now I'm backlogged with regressions and other stuff so I won't be able to get to writing one until next week at least. (Feel free to write it yourself though) |
|
@staktrace Okay. I'll try to get the Gecko patch ready tomorrow. The WebRender bit is done (just needs cleanup and a bit more testing) and is here: https://github.com/mrobinson/servo/tree/remove-external-clip-id |
|
|
|
I think it makes sense to include in this PR the removal of specifying external ClipIds completely. I'll do this as well as finish the Gecko bits of this change. |
1a44de4
to
f657aa8
|
Here's the Gecko try job which includes the Gecko changes for this PR: https://treeherder.mozilla.org/#/jobs?repo=try&revision=5f31bc33d18361f78b041620f0dd174edd19e3e6 @staktrace, what is the best way to provide the Gecko patch? |
|
The try push is fine. I'll put out the gecko stuff and apply it to my local queue from where I do WR update try pushes, and then eventually that patch will go onto bug 1432789 as part of the patch queue for the next WR update. I'll keep you as the patch author and flag myself for review when the patches go up. |
f657aa8
to
922281e
|
(Just to be clear the gecko stuff is good now - thanks for the patch - so feel free to merge this whenever you're ready) |
|
@mrobinson Sorry, I didn't realize this one was ready for review. Will review first thing in the morning! |
|
Reviewed 12 of 12 files at r1. webrender/src/clip_scroll_tree.rs, line 259 at r1 (raw file):
could be shorter in order to avoid webrender/src/clip_scroll_tree.rs, line 490 at r1 (raw file):
webrender/src/clip_scroll_tree.rs, line 505 at r1 (raw file):
can this be combined with the earlier check for webrender/src/clip_scroll_tree.rs, line 508 at r1 (raw file):
what happens if the node has pending scroll offsets for both webrender_api/src/api.rs, line 395 at r1 (raw file):
Perhaps, this name is too generic? webrender_api/src/api.rs, line 397 at r1 (raw file):
we could implement Comments from Reviewable |
|
Reviewed 12 of 12 files at r1. webrender_api/src/api.rs, line 395 at r1 (raw file):
Maybe ClipScrollIdType ? Comments from Reviewable |
|
|
Move the concept of external scroll ids to ScrollFrames themselves. It was probably a mistake to integrate this into ClipId in the first place. Moving it out allows us to simplify a few code paths and to remove user defined ClipIds entirely, making things simpler and more consistent. This will also allow fixing Servo bugs 19287, 17176 and 19648.
|
Review status: all files reviewed at latest revision, 7 unresolved discussions, some commit checks failed. webrender/src/clip_scroll_tree.rs, line 259 at r1 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
I gave this a shot, but it ultimately didn't work because I need webrender/src/clip_scroll_tree.rs, line 490 at r1 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
Nice catch! webrender/src/clip_scroll_tree.rs, line 505 at r1 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
It looks like we can combine these blocks by applying webrender/src/clip_scroll_tree.rs, line 508 at r1 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
With these changes the webrender_api/src/api.rs, line 395 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
I have gone with ScrollNodeIdType, because this should only apply to scrolling nodes. Hopefully we can remove this entirely in an upcoming PR once Gecko and Servo both use the same id type to scroll. webrender_api/src/api.rs, line 397 at r1 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
Sure. That makes the code a bit nicer. Comments from Reviewable |
922281e
to
aa91e78
|
@bors-servo r=glennw,kvark |
|
|
Remove external scroll ids from ClipId Move the concept of external scroll ids to ScrollFrames themselves. It was probably a mistake to integrate this into ClipId in the first place. Moving it out allows us to simplify a few code paths and will allow us to remove user defined ClipIds entirely, making things simpler and more consistent. This will also allow fixing Servo bugs servo/servo#19287, servo/servo#17176, and servo/servo#19648. <!-- 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/2315) <!-- Reviewable:end -->
|
|
In servo#2315 some changes were requested during review. I accidentally landed the PR without incorporating those changes. This commit integrates them.
…, r=glennw Add changes from reviews for ExternalScrollId change In #2315 some changes were requested during review. I accidentally landed the PR without incorporating those changes. This commit integrates them. <!-- 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/2381) <!-- Reviewable:end -->
mrobinson commentedJan 17, 2018
•
edited
Move the concept of external scroll ids to ScrollFrames themselves. It
was probably a mistake to integrate this into ClipId in the first place.
Moving it out allows us to simplify a few code paths and will allow us
to remove user defined ClipIds entirely, making things simpler and more
consistent. This will also allow fixing Servo bugs servo/servo#19287,
servo/servo#17176, and servo/servo#19648.
This change is