aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_task.rs
diff options
context:
space:
mode:
authorKeith Yeung <kungfukeith11@gmail.com>2015-12-09 02:25:13 -0800
committerKeith Yeung <kungfukeith11@gmail.com>2015-12-09 10:56:21 -0800
commit2ee446de5d987c911f91dafa499d8a9f7df61995 (patch)
tree343ec4abfa5c6855232b5ff021346d2e229116c2 /components/layout/layout_task.rs
parent8cdafe8ffcad0c8fd303147d5a5781b44c3e47fd (diff)
downloadservo-2ee446de5d987c911f91dafa499d8a9f7df61995.tar.gz
servo-2ee446de5d987c911f91dafa499d8a9f7df61995.zip
Fix build errors after rebasing and address review comments
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r--components/layout/layout_task.rs13
1 files changed, 6 insertions, 7 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs
index 453483efe7c..4eb0dd4b7de 100644
--- a/components/layout/layout_task.rs
+++ b/components/layout/layout_task.rs
@@ -54,7 +54,7 @@ use script_traits::{ConstellationControlMsg, LayoutControlMsg, OpaqueScriptLayou
use sequential;
use serde_json;
use std::borrow::ToOwned;
-use std::cell::{Cell, RefCell};
+use std::cell::RefCell;
use std::collections::HashMap;
use std::collections::hash_state::DefaultState;
use std::mem::transmute;
@@ -627,8 +627,7 @@ impl LayoutTask {
self.create_layout_task(info)
}
Msg::SetFinalUrl(final_url) => {
- let mut url_ref_cell = self.url.borrow_mut();
- *url_ref_cell = final_url;
+ *self.url.borrow_mut() = final_url;
},
Msg::PrepareToExit(response_chan) => {
self.prepare_to_exit(response_chan);
@@ -918,7 +917,7 @@ impl LayoutTask {
let document = unsafe { ServoLayoutNode::new(&data.document) };
let document = document.as_document().unwrap();
- debug!("layout: received layout request for: {}", self.url.serialize());
+ debug!("layout: received layout request for: {}", self.url.borrow().serialize());
let mut rw_data = possibly_locked_rw_data.lock();
@@ -1128,7 +1127,7 @@ impl LayoutTask {
let mut layout_context = self.build_shared_layout_context(&*rw_data,
false,
- url_clone,
+ &self.url.borrow(),
reflow_info.goal);
self.perform_post_main_layout_passes(&reflow_info, &mut *rw_data, &mut layout_context);
@@ -1183,7 +1182,7 @@ impl LayoutTask {
let mut layout_context = self.build_shared_layout_context(&*rw_data,
false,
- &self.url,
+ &self.url.borrow(),
reflow_info.goal);
// No need to do a style recalc here.
@@ -1307,7 +1306,7 @@ impl LayoutTask {
/// Returns profiling information which is passed to the time profiler.
fn profiler_metadata(&self) -> Option<TimerMetadata> {
Some(TimerMetadata {
- url: self.url.serialize(),
+ url: self.url.borrow().serialize(),
iframe: if self.is_iframe {
TimerMetadataFrameType::IFrame
} else {