aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2023-06-30 16:20:59 +0200
committerMartin Robinson <mrobinson@igalia.com>2023-06-30 16:28:21 +0200
commit349edff768bbf972435542fa3829e0b01dc72d40 (patch)
tree3d203589fe4ede758348ab8075d70c3ebc7d6746 /components/script_traits
parent7412e28349237055652a08a2216043d0993a3cea (diff)
downloadservo-349edff768bbf972435542fa3829e0b01dc72d40.tar.gz
servo-349edff768bbf972435542fa3829e0b01dc72d40.zip
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.
Diffstat (limited to 'components/script_traits')
-rw-r--r--components/script_traits/script_msg.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index afa3eeaea83..d49e9c6bba5 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -36,7 +36,6 @@ use servo_url::ServoUrl;
use smallvec::SmallVec;
use std::collections::{HashMap, VecDeque};
use std::fmt;
-use style_traits::viewport::ViewportConstraints;
use style_traits::CSSPixel;
use webgpu::{wgpu, WebGPU, WebGPUResponseResult};
use webrender_api::units::{DeviceIntPoint, DeviceIntSize};
@@ -60,8 +59,6 @@ pub enum LayoutMsg {
/// Requests that the constellation inform the compositor that it needs to record
/// the time when the frame with the given ID (epoch) is painted.
PendingPaintMetric(PipelineId, Epoch),
- /// Notifies the constellation that the viewport has been constrained in some manner
- ViewportConstrained(PipelineId, ViewportConstraints),
}
impl fmt::Debug for LayoutMsg {
@@ -70,7 +67,6 @@ impl fmt::Debug for LayoutMsg {
let variant = match *self {
IFrameSizes(..) => "IFrameSizes",
PendingPaintMetric(..) => "PendingPaintMetric",
- ViewportConstrained(..) => "ViewportConstrained",
};
write!(formatter, "LayoutMsg::{}", variant)
}