aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/devtools.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-05-23 19:49:53 -0400
committerCorey Farwell <coreyf@rwell.org>2015-05-24 00:01:49 -0400
commit8e3f4bba85b9b246fb7da8ea0994fb0160578c1b (patch)
tree2c66c695c97d638df81aeb40ac54ccc6d0cc8cb9 /components/script/devtools.rs
parent7561f7b83f27811683c1e724d75a935573a72813 (diff)
downloadservo-8e3f4bba85b9b246fb7da8ea0994fb0160578c1b.tar.gz
servo-8e3f4bba85b9b246fb7da8ea0994fb0160578c1b.zip
Reduce max line length from 150 to 120 characters
Part of https://github.com/servo/servo/issues/6041
Diffstat (limited to 'components/script/devtools.rs')
-rw-r--r--components/script/devtools.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/script/devtools.rs b/components/script/devtools.rs
index d67f57b4e4f..cd093616207 100644
--- a/components/script/devtools.rs
+++ b/components/script/devtools.rs
@@ -36,7 +36,8 @@ pub fn handle_evaluate_js(page: &Rc<Page>, pipeline: PipelineId, eval: String, r
EvaluateJSReply::NumberValue(FromJSValConvertible::from_jsval(cx, rval, ()).unwrap())
} else if rval.is_string() {
//FIXME: use jsstring_to_str when jsval grows to_jsstring
- EvaluateJSReply::StringValue(FromJSValConvertible::from_jsval(cx, rval, StringificationBehavior::Default).unwrap())
+ EvaluateJSReply::StringValue(
+ FromJSValConvertible::from_jsval(cx, rval, StringificationBehavior::Default).unwrap())
} else if rval.is_null() {
EvaluateJSReply::NullValue
} else {
@@ -95,7 +96,10 @@ pub fn handle_get_layout(page: &Rc<Page>, pipeline: PipelineId, node_id: String,
reply.send((width, height)).unwrap();
}
-pub fn handle_modify_attribute(page: &Rc<Page>, pipeline: PipelineId, node_id: String, modifications: Vec<Modification>) {
+pub fn handle_modify_attribute(page: &Rc<Page>,
+ pipeline: PipelineId,
+ node_id: String,
+ modifications: Vec<Modification>) {
let node = find_node_by_unique_id(&*page, pipeline, node_id).root();
let elem: JSRef<Element> = ElementCast::to_ref(node.r()).expect("should be getting layout of element");