Make querying layout for content boxes an infallible operation.

This commit is contained in:
Josh Matthews 2013-09-03 18:26:39 -04:00
parent a567eb007d
commit 79444596d1
6 changed files with 74 additions and 43 deletions

View file

@ -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()