script: Remove unused Window::page_clip_rect (#37394)

This value was used when rendering was not done by WebRender. Nowadays,
we do not need this page clip rect concept and it is completely
unused.

Testing: This just remove dead code, so should be covered by existing
tests.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2025-06-11 15:08:33 +02:00 committed by GitHub
parent c36ef34464
commit fab958258e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 45 deletions

View file

@ -2451,7 +2451,7 @@ impl ScriptThread {
fn handle_viewport(&self, id: PipelineId, rect: Rect<f32>) {
let document = self.documents.borrow().find_document(id);
if let Some(document) = document {
document.window().set_page_clip_rect_with_new_viewport(rect);
document.window().set_viewport(rect);
return;
}
let loads = self.incomplete_loads.borrow();