mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove SharedLayoutContext::url.
It is unused.
This commit is contained in:
parent
134fd18767
commit
dc41c671e2
2 changed files with 0 additions and 10 deletions
|
@ -91,9 +91,6 @@ pub struct SharedLayoutContext {
|
||||||
/// Interface to the font cache thread.
|
/// Interface to the font cache thread.
|
||||||
pub font_cache_thread: Mutex<FontCacheThread>,
|
pub font_cache_thread: Mutex<FontCacheThread>,
|
||||||
|
|
||||||
/// The URL.
|
|
||||||
pub url: Url,
|
|
||||||
|
|
||||||
/// The visible rects for each layer, as reported to us by the compositor.
|
/// The visible rects for each layer, as reported to us by the compositor.
|
||||||
pub visible_rects: Arc<HashMap<LayerId, Rect<Au>, BuildHasherDefault<FnvHasher>>>,
|
pub visible_rects: Arc<HashMap<LayerId, Rect<Au>, BuildHasherDefault<FnvHasher>>>,
|
||||||
|
|
||||||
|
|
|
@ -500,7 +500,6 @@ impl LayoutThread {
|
||||||
fn build_shared_layout_context(&self,
|
fn build_shared_layout_context(&self,
|
||||||
rw_data: &LayoutThreadData,
|
rw_data: &LayoutThreadData,
|
||||||
screen_size_changed: bool,
|
screen_size_changed: bool,
|
||||||
url: &Url,
|
|
||||||
goal: ReflowGoal)
|
goal: ReflowGoal)
|
||||||
-> SharedLayoutContext {
|
-> SharedLayoutContext {
|
||||||
SharedLayoutContext {
|
SharedLayoutContext {
|
||||||
|
@ -518,7 +517,6 @@ impl LayoutThread {
|
||||||
image_cache_thread: self.image_cache_thread.clone(),
|
image_cache_thread: self.image_cache_thread.clone(),
|
||||||
image_cache_sender: Mutex::new(self.image_cache_sender.clone()),
|
image_cache_sender: Mutex::new(self.image_cache_sender.clone()),
|
||||||
font_cache_thread: Mutex::new(self.font_cache_thread.clone()),
|
font_cache_thread: Mutex::new(self.font_cache_thread.clone()),
|
||||||
url: (*url).clone(),
|
|
||||||
visible_rects: self.visible_rects.clone(),
|
visible_rects: self.visible_rects.clone(),
|
||||||
webrender_image_cache: self.webrender_image_cache.clone(),
|
webrender_image_cache: self.webrender_image_cache.clone(),
|
||||||
}
|
}
|
||||||
|
@ -609,7 +607,6 @@ impl LayoutThread {
|
||||||
};
|
};
|
||||||
let mut layout_context = self.build_shared_layout_context(&*rw_data,
|
let mut layout_context = self.build_shared_layout_context(&*rw_data,
|
||||||
false,
|
false,
|
||||||
&self.url,
|
|
||||||
reflow_info.goal);
|
reflow_info.goal);
|
||||||
|
|
||||||
self.perform_post_style_recalc_layout_passes(&reflow_info,
|
self.perform_post_style_recalc_layout_passes(&reflow_info,
|
||||||
|
@ -1113,7 +1110,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 shared_layout_context = self.build_shared_layout_context(&*rw_data,
|
let mut shared_layout_context = self.build_shared_layout_context(&*rw_data,
|
||||||
viewport_size_changed,
|
viewport_size_changed,
|
||||||
&self.url,
|
|
||||||
data.reflow_info.goal);
|
data.reflow_info.goal);
|
||||||
|
|
||||||
if node.is_dirty() || node.has_dirty_descendants() {
|
if node.is_dirty() || node.has_dirty_descendants() {
|
||||||
|
@ -1262,7 +1258,6 @@ impl LayoutThread {
|
||||||
|
|
||||||
let mut layout_context = self.build_shared_layout_context(&*rw_data,
|
let mut layout_context = self.build_shared_layout_context(&*rw_data,
|
||||||
false,
|
false,
|
||||||
&self.url,
|
|
||||||
reflow_info.goal);
|
reflow_info.goal);
|
||||||
|
|
||||||
self.perform_post_main_layout_passes(&reflow_info, &mut *rw_data, &mut layout_context);
|
self.perform_post_main_layout_passes(&reflow_info, &mut *rw_data, &mut layout_context);
|
||||||
|
@ -1282,7 +1277,6 @@ impl LayoutThread {
|
||||||
|
|
||||||
let mut layout_context = self.build_shared_layout_context(&*rw_data,
|
let mut layout_context = self.build_shared_layout_context(&*rw_data,
|
||||||
false,
|
false,
|
||||||
&self.url,
|
|
||||||
reflow_info.goal);
|
reflow_info.goal);
|
||||||
|
|
||||||
if let Some(mut root_flow) = self.root_flow.clone() {
|
if let Some(mut root_flow) = self.root_flow.clone() {
|
||||||
|
@ -1313,7 +1307,6 @@ impl LayoutThread {
|
||||||
|
|
||||||
let mut layout_context = self.build_shared_layout_context(&*rw_data,
|
let mut layout_context = self.build_shared_layout_context(&*rw_data,
|
||||||
false,
|
false,
|
||||||
&self.url,
|
|
||||||
reflow_info.goal);
|
reflow_info.goal);
|
||||||
|
|
||||||
// No need to do a style recalc here.
|
// No need to do a style recalc here.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue