Fix main frame scrolling in quirks mode after WebRender (#30375)

Main frame scrolling after the WebRender upgrade was broken because the
main frame no longer has content size content bounds and quirks mode
leads to a body with zero height.

Fixes #30368.
This commit is contained in:
Martin Robinson 2023-09-18 15:28:42 +02:00 committed by GitHub
parent df8cd1a7c8
commit 39291715c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 12 additions and 16 deletions

View file

@ -664,7 +664,7 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
self.waiting_for_results_of_scroll = true;
let mut txn = Transaction::new();
txn.scroll_node_with_id(point, scroll_id, ScrollClamping::ToContentBounds);
txn.scroll_node_with_id(point, scroll_id, ScrollClamping::NoClamping);
txn.generate_frame(0);
self.webrender_api
.send_transaction(self.webrender_document, txn);

View file

@ -0,0 +1,2 @@
[background-attachment-fixed-inline-scrolled.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[position-sticky-escape-scroller-002.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[position-sticky-escape-scroller-004.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[position-sticky-top-002.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text-overflow-021.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[background-attachment-fixed-inline-scrolled.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[position-sticky-escape-scroller-002.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[filtered-html-is-not-container.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[scroll_root.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[scrollBy.html]
[Ensure that the window.scrollBy function affects scroll position as expected]
expected: FAIL

View file

@ -1,2 +0,0 @@
[scroll_root.html]
expected: FAIL