mirror of
https://github.com/servo/servo.git
synced 2025-08-28 16:48:22 +01:00
Make querying layout for content boxes an infallible operation.
This commit is contained in:
parent
a567eb007d
commit
79444596d1
6 changed files with 74 additions and 43 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue