mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
It was removed from the spec and it's disabled everywhere.
This also removes the meta viewport support (which was implemented on top), but that also had a single test and is disabled everywhere, so I'm not too concerned, it can be implemented again if / when needed.
This commit is contained in:
parent
7412e28349
commit
349edff768
34 changed files with 35 additions and 1139 deletions
|
@ -176,7 +176,6 @@ use std::process;
|
|||
use std::rc::{Rc, Weak};
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::thread;
|
||||
use style_traits::viewport::ViewportConstraints;
|
||||
use style_traits::CSSPixel;
|
||||
use webgpu::{self, WebGPU, WebGPURequest};
|
||||
use webrender_traits::WebrenderExternalImageRegistry;
|
||||
|
@ -2110,9 +2109,6 @@ where
|
|||
FromLayoutMsg::PendingPaintMetric(pipeline_id, epoch) => {
|
||||
self.handle_pending_paint_metric(pipeline_id, epoch);
|
||||
},
|
||||
FromLayoutMsg::ViewportConstrained(pipeline_id, constraints) => {
|
||||
self.handle_viewport_constrained_msg(pipeline_id, constraints);
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4934,19 +4930,6 @@ where
|
|||
self.switch_fullscreen_mode(browsing_context_id);
|
||||
}
|
||||
|
||||
/// Handle updating actual viewport / zoom due to @viewport rules
|
||||
fn handle_viewport_constrained_msg(
|
||||
&mut self,
|
||||
pipeline_id: PipelineId,
|
||||
constraints: ViewportConstraints,
|
||||
) {
|
||||
self.compositor_proxy
|
||||
.send(ToCompositorMsg::ViewportConstrained(
|
||||
pipeline_id,
|
||||
constraints,
|
||||
));
|
||||
}
|
||||
|
||||
/// Checks the state of all script and layout pipelines to see if they are idle
|
||||
/// and compares the current layout state to what the compositor has. This is used
|
||||
/// to check if the output image is "stable" and can be written as a screenshot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue