Remove unused Window::last_reflow_id.

This commit is contained in:
Ms2ger 2015-10-28 11:57:05 +01:00
parent 40b3b749bf
commit 02692d201f

View file

@ -163,9 +163,6 @@ pub struct Window {
/// Subpage id associated with this page, if any. /// Subpage id associated with this page, if any.
parent_info: Option<(PipelineId, SubpageId)>, parent_info: Option<(PipelineId, SubpageId)>,
/// Unique id for last reflow request; used for confirming completion reply.
last_reflow_id: Cell<u32>,
/// Global static data related to the DOM. /// Global static data related to the DOM.
dom_static: GlobalStaticData, dom_static: GlobalStaticData,
@ -901,9 +898,6 @@ impl Window {
// Layout will let us know when it's done. // Layout will let us know when it's done.
let (join_chan, join_port) = channel(); let (join_chan, join_port) = channel();
let last_reflow_id = &self.last_reflow_id;
last_reflow_id.set(last_reflow_id.get() + 1);
// On debug mode, print the reflow event information. // On debug mode, print the reflow event information.
if opts::get().relayout_event { if opts::get().relayout_event {
debug_reflow_events(&goal, &query_type, &reason); debug_reflow_events(&goal, &query_type, &reason);
@ -1264,7 +1258,6 @@ impl Window {
constellation_chan: constellation_chan, constellation_chan: constellation_chan,
page_clip_rect: Cell::new(MAX_RECT), page_clip_rect: Cell::new(MAX_RECT),
fragment_name: DOMRefCell::new(None), fragment_name: DOMRefCell::new(None),
last_reflow_id: Cell::new(0),
resize_event: Cell::new(None), resize_event: Cell::new(None),
next_subpage_id: Cell::new(SubpageId(0)), next_subpage_id: Cell::new(SubpageId(0)),
layout_chan: layout_chan, layout_chan: layout_chan,