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/layout_interface.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/layout_interface.rs')
-rw-r--r-- | src/components/script/layout_interface.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/layout_interface.rs b/src/components/script/layout_interface.rs index b9e349bf50e..89336494959 100644 --- a/src/components/script/layout_interface.rs +++ b/src/components/script/layout_interface.rs @@ -38,9 +38,9 @@ pub enum Msg { /// Synchronous messages that script can send to layout. pub enum LayoutQuery { /// Requests the dimensions of the content box, as in the `getBoundingClientRect()` call. - ContentBoxQuery(AbstractNode<ScriptView>, Chan<Result<ContentBoxResponse, ()>>), + ContentBoxQuery(AbstractNode<ScriptView>, Chan<ContentBoxResponse>), /// Requests the dimensions of all the content boxes, as in the `getClientRects()` call. - ContentBoxesQuery(AbstractNode<ScriptView>, Chan<Result<ContentBoxesResponse, ()>>), + ContentBoxesQuery(AbstractNode<ScriptView>, Chan<ContentBoxesResponse>), /// Requests the node containing the point of interest HitTestQuery(AbstractNode<ScriptView>, Point2D<f32>, Chan<Result<HitTestResponse, ()>>), } |