aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread_2020/lib.rs
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/layout_thread_2020/lib.rs
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/layout_thread_2020/lib.rs')
-rw-r--r--components/layout_thread_2020/lib.rs24
1 files changed, 1 insertions, 23 deletions
diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs
index 006d18fc67e..e49faeff735 100644
--- a/components/layout_thread_2020/lib.rs
+++ b/components/layout_thread_2020/lib.rs
@@ -896,29 +896,7 @@ impl LayoutThread {
self.stylist
.force_stylesheet_origins_dirty(sheet_origins_affected_by_device_change);
- self.viewport_size =
- self.stylist
- .viewport_constraints()
- .map_or(current_screen_size, |constraints| {
- Size2D::new(
- Au::from_f32_px(constraints.size.width),
- Au::from_f32_px(constraints.size.height),
- )
- });
-
- let viewport_size_changed = self.viewport_size != old_viewport_size;
- if viewport_size_changed {
- if let Some(constraints) = self.stylist.viewport_constraints() {
- // let the constellation know about the viewport constraints
- self.constellation_chan
- .send(ConstellationMsg::ViewportConstrained(
- self.id,
- constraints.clone(),
- ))
- .unwrap();
- }
- }
-
+ self.viewport_size = current_screen_size;
if self.first_reflow.get() {
for stylesheet in &ua_stylesheets.user_or_user_agent_stylesheets {
self.stylist