style: Remove unused screen_size_changed layout context field.

This commit is contained in:
Emilio Cobos Álvarez 2017-03-03 00:37:10 +01:00
parent fa32d50c7a
commit b4daadf7f2
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 0 additions and 9 deletions

View file

@ -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);

View file

@ -64,9 +64,6 @@ pub struct SharedStyleContext {
/// The current viewport size.
pub viewport_size: Size2D<Au>,
/// Screen sized changed?
pub screen_size_changed: bool,
/// The CSS selector stylist.
pub stylist: Arc<Stylist>,

View file

@ -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(),