mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
style: Remove unused screen_size_changed layout context field.
This commit is contained in:
parent
fa32d50c7a
commit
b4daadf7f2
3 changed files with 0 additions and 9 deletions
|
@ -496,7 +496,6 @@ impl LayoutThread {
|
||||||
// Create a layout context for use in building display lists, hit testing, &c.
|
// Create a layout context for use in building display lists, hit testing, &c.
|
||||||
fn build_layout_context(&self,
|
fn build_layout_context(&self,
|
||||||
rw_data: &LayoutThreadData,
|
rw_data: &LayoutThreadData,
|
||||||
screen_size_changed: bool,
|
|
||||||
goal: ReflowGoal,
|
goal: ReflowGoal,
|
||||||
request_images: bool)
|
request_images: bool)
|
||||||
-> LayoutContext {
|
-> LayoutContext {
|
||||||
|
@ -506,7 +505,6 @@ impl LayoutThread {
|
||||||
LayoutContext {
|
LayoutContext {
|
||||||
style_context: SharedStyleContext {
|
style_context: SharedStyleContext {
|
||||||
viewport_size: self.viewport_size.clone(),
|
viewport_size: self.viewport_size.clone(),
|
||||||
screen_size_changed: screen_size_changed,
|
|
||||||
stylist: rw_data.stylist.clone(),
|
stylist: rw_data.stylist.clone(),
|
||||||
goal: goal,
|
goal: goal,
|
||||||
running_animations: self.running_animations.clone(),
|
running_animations: self.running_animations.clone(),
|
||||||
|
@ -1120,7 +1118,6 @@ impl LayoutThread {
|
||||||
|
|
||||||
// Create a layout context for use throughout the following passes.
|
// Create a layout context for use throughout the following passes.
|
||||||
let mut layout_context = self.build_layout_context(&*rw_data,
|
let mut layout_context = self.build_layout_context(&*rw_data,
|
||||||
viewport_size_changed,
|
|
||||||
data.reflow_info.goal,
|
data.reflow_info.goal,
|
||||||
true);
|
true);
|
||||||
|
|
||||||
|
@ -1351,7 +1348,6 @@ impl LayoutThread {
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut layout_context = self.build_layout_context(&*rw_data,
|
let mut layout_context = self.build_layout_context(&*rw_data,
|
||||||
false,
|
|
||||||
reflow_info.goal,
|
reflow_info.goal,
|
||||||
false);
|
false);
|
||||||
|
|
||||||
|
@ -1387,7 +1383,6 @@ impl LayoutThread {
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut layout_context = self.build_layout_context(&*rw_data,
|
let mut layout_context = self.build_layout_context(&*rw_data,
|
||||||
false,
|
|
||||||
reflow_info.goal,
|
reflow_info.goal,
|
||||||
false);
|
false);
|
||||||
|
|
||||||
|
|
|
@ -64,9 +64,6 @@ pub struct SharedStyleContext {
|
||||||
/// The current viewport size.
|
/// The current viewport size.
|
||||||
pub viewport_size: Size2D<Au>,
|
pub viewport_size: Size2D<Au>,
|
||||||
|
|
||||||
/// Screen sized changed?
|
|
||||||
pub screen_size_changed: bool,
|
|
||||||
|
|
||||||
/// The CSS selector stylist.
|
/// The CSS selector stylist.
|
||||||
pub stylist: Arc<Stylist>,
|
pub stylist: Arc<Stylist>,
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,6 @@ fn create_shared_context(per_doc_data: &PerDocumentStyleDataImpl) -> SharedStyle
|
||||||
SharedStyleContext {
|
SharedStyleContext {
|
||||||
// FIXME (bug 1303229): Use the actual viewport size here
|
// FIXME (bug 1303229): Use the actual viewport size here
|
||||||
viewport_size: Size2D::new(Au(0), Au(0)),
|
viewport_size: Size2D::new(Au(0), Au(0)),
|
||||||
screen_size_changed: false,
|
|
||||||
goal: ReflowGoal::ForScriptQuery,
|
goal: ReflowGoal::ForScriptQuery,
|
||||||
stylist: per_doc_data.stylist.clone(),
|
stylist: per_doc_data.stylist.clone(),
|
||||||
running_animations: per_doc_data.running_animations.clone(),
|
running_animations: per_doc_data.running_animations.clone(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue