diff options
author | Josh Matthews <josh@joshmatthews.net> | 2013-09-03 18:26:39 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2013-09-04 11:07:11 -0400 |
commit | 79444596d165722cdb26a0c0a04f963d11b87417 (patch) | |
tree | d2cc55b2fe41ba04cedf1fdcc1542f1d85bafb79 /src/components/script/script_task.rs | |
parent | a567eb007d1dddde6c5dc4df2fc5bc08e3705768 (diff) | |
download | servo-79444596d165722cdb26a0c0a04f963d11b87417.tar.gz servo-79444596d165722cdb26a0c0a04f963d11b87417.zip |
Make querying layout for content boxes an infallible operation.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 37d9caf242a..86524a3704d 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -231,8 +231,8 @@ impl Page { /// Sends the given query to layout. pub fn query_layout<T: Send>(&mut self, query: LayoutQuery, - response_port: Port<Result<T, ()>>) - -> Result<T,()> { + response_port: Port<T>) + -> T { self.join_layout(); self.layout_chan.send(QueryMsg(query)); response_port.recv() |