aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/devtools.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-05-24 18:27:26 -0500
committerbors-servo <metajack+bors@gmail.com>2015-05-24 18:27:26 -0500
commit542519ebfd073662bc9421ac5fa0aa01ebc0d6fe (patch)
tree4f6814d089be78af598f1d9f536c18a6a61f8e54 /components/script/devtools.rs
parent16f19b628fa630aab8cfd275a90128da7b59723b (diff)
parent5793add4cdc9e96930160dfc90025f43607f9f5d (diff)
downloadservo-542519ebfd073662bc9421ac5fa0aa01ebc0d6fe.tar.gz
servo-542519ebfd073662bc9421ac5fa0aa01ebc0d6fe.zip
Auto merge of #6174 - frewsxcv:cleanup-long-lines, r=SimonSapin
Part of https://github.com/servo/servo/issues/6041 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6174) <!-- Reviewable:end -->
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");