aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/layout_interface.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2013-09-03 18:26:39 -0400
committerJosh Matthews <josh@joshmatthews.net>2013-09-04 11:07:11 -0400
commit79444596d165722cdb26a0c0a04f963d11b87417 (patch)
treed2cc55b2fe41ba04cedf1fdcc1542f1d85bafb79 /src/components/script/layout_interface.rs
parenta567eb007d1dddde6c5dc4df2fc5bc08e3705768 (diff)
downloadservo-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.rs4
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, ()>>),
}