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);