Repository navigation
script: Keep the DOM-side viewport up to date when scrolling happens in WebRender. - #11398
Conversation
|
Heads up! This PR modifies the following files:
|
|
☔ The latest upstream changes (presumably #11373) made this pull request unmergeable. Please resolve the merge conflicts. |
|
|
||
| let mut loads = self.incomplete_loads.borrow_mut(); | ||
| if let Some(ref mut load) = loads.iter_mut().find(|load| load.pipeline_id == id) { | ||
| // FIXME(pcwalton): Do something here? |
There was a problem hiding this comment.
I think an incomplete load won't ever be able to get in a state where it receives a set scroll state message, so this could possibly be removed @jdm ?
There was a problem hiding this comment.
Yeah, incomplete loads are ones where we haven't even received HTTP headers. As soon as we do it is turned into an actual document.
|
@pcwalton One comment / question added. Can we add a test for that scrolls via JS and then checks the return value of ScrollX() etc? |
16ef504 to
99827a4
Compare
|
Comments addressed; test added. r? @glennw |
|
@pcwalton Looks good to me once the dependencies land and cargo.lock is updated. |
99827a4 to
a332b64
Compare
|
@bors-servo: r=glennw |
|
📌 Commit a332b64 has been approved by |
script: Keep the DOM-side viewport up to date when scrolling happens in WebRender. This happens asynchronously, just as it does in non-WebRender mode. This functionality is a prerequisite for doing proper display-list-based hit testing in WebRender, since it moves the scroll offsets into Servo (and, specifically, into the script thread, enabling iframe event forwarding) instead of keeping them private to WebRender. Requires servo/webrender_traits#55 and servo/webrender#277. Partially addresses #11108. r? @glennw <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11398) <!-- Reviewable:end -->
|
💔 Test failed - mac-dev-unit |
|
☔ The latest upstream changes (presumably #11474) made this pull request unmergeable. Please resolve the merge conflicts. |
a332b64 to
f5b63cc
Compare
|
@bors-servo: r=glennw |
|
📌 Commit f5b63cc has been approved by |
|
📌 Commit c02e679 has been approved by |
script: Keep the DOM-side viewport up to date when scrolling happens in WebRender. This happens asynchronously, just as it does in non-WebRender mode. This functionality is a prerequisite for doing proper display-list-based hit testing in WebRender, since it moves the scroll offsets into Servo (and, specifically, into the script thread, enabling iframe event forwarding) instead of keeping them private to WebRender. Requires servo/webrender_traits#55 and servo/webrender#277. Partially addresses #11108. r? @glennw <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11398) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt |
|
|
@bors-servo: retry I don't see any way my patch could have regressed these |
|
⚡ Previous build results for android, arm32, arm64, linux-dev, mac-dev-unit, windows are reusable. Rebuilding only linux-rel, mac-rel-css, mac-rel-wpt... |
|
💔 Test failed - mac-rel-wpt |
|
|
Mea culpa. |
WebRender. This happens asynchronously, just as it does in non-WebRender mode. This functionality is a prerequisite for doing proper display-list-based hit testing in WebRender, since it moves the scroll offsets into Servo (and, specifically, into the script thread, enabling iframe event forwarding) instead of keeping them private to WebRender. Requires servo/webrender_traits#55 and servo/webrender#277. Partially addresses servo#11108.
As written it failed in all browsers, including Servo with these changes. The test is simply intended to test that fixed position elements are correctly rendered out of flow. It is simplified to test this.
c02e679 to
4e0fe22
Compare
|
New code was committed to pull request. |
|
@bors-servo r+ |
|
📌 Commit 4e0fe22 has been approved by |
script: Keep the DOM-side viewport up to date when scrolling happens in WebRender. This happens asynchronously, just as it does in non-WebRender mode. This functionality is a prerequisite for doing proper display-list-based hit testing in WebRender, since it moves the scroll offsets into Servo (and, specifically, into the script thread, enabling iframe event forwarding) instead of keeping them private to WebRender. Requires servo/webrender_traits#55 and servo/webrender#277. Partially addresses #11108. r? @glennw <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11398) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
This happens asynchronously, just as it does in non-WebRender mode.
This functionality is a prerequisite for doing proper display-list-based
hit testing in WebRender, since it moves the scroll offsets into Servo
(and, specifically, into the script thread, enabling iframe event
forwarding) instead of keeping them private to WebRender.
Requires servo/webrender_traits#55 and servo/webrender#277.
Partially addresses #11108.
r? @glennw
This change is