diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index c196f394d51..c144f0f526c 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -496,7 +496,6 @@ impl LayoutThread { // Create a layout context for use in building display lists, hit testing, &c. fn build_layout_context(&self, rw_data: &LayoutThreadData, - screen_size_changed: bool, goal: ReflowGoal, request_images: bool) -> LayoutContext { @@ -506,7 +505,6 @@ impl LayoutThread { LayoutContext { style_context: SharedStyleContext { viewport_size: self.viewport_size.clone(), - screen_size_changed: screen_size_changed, stylist: rw_data.stylist.clone(), goal: goal, running_animations: self.running_animations.clone(), @@ -1120,7 +1118,6 @@ impl LayoutThread { // Create a layout context for use throughout the following passes. let mut layout_context = self.build_layout_context(&*rw_data, - viewport_size_changed, data.reflow_info.goal, true); @@ -1351,7 +1348,6 @@ impl LayoutThread { }; let mut layout_context = self.build_layout_context(&*rw_data, - false, reflow_info.goal, false); @@ -1387,7 +1383,6 @@ impl LayoutThread { }; let mut layout_context = self.build_layout_context(&*rw_data, - false, reflow_info.goal, false); diff --git a/components/style/context.rs b/components/style/context.rs index bbf3a7ed61c..c97e6f531f9 100644 --- a/components/style/context.rs +++ b/components/style/context.rs @@ -64,9 +64,6 @@ pub struct SharedStyleContext { /// The current viewport size. pub viewport_size: Size2D, - /// Screen sized changed? - pub screen_size_changed: bool, - /// The CSS selector stylist. pub stylist: Arc, diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 915b5e1a77b..bf438eff024 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -164,7 +164,6 @@ fn create_shared_context(per_doc_data: &PerDocumentStyleDataImpl) -> SharedStyle SharedStyleContext { // FIXME (bug 1303229): Use the actual viewport size here viewport_size: Size2D::new(Au(0), Au(0)), - screen_size_changed: false, goal: ReflowGoal::ForScriptQuery, stylist: per_doc_data.stylist.clone(), running_animations: per_doc_data.running_animations.clone(),