aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/rpc.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-01-17 00:22:42 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-01-17 13:55:08 +0100
commit485fe874e8674e9a54b69e3f78f1bb9f43fdbbc9 (patch)
treee2ea91ab68ff27f1bd9851041668f0c0172c347c /components/script_layout_interface/rpc.rs
parent8159dac506f7fc24675270079d3286e86731bb5c (diff)
downloadservo-485fe874e8674e9a54b69e3f78f1bb9f43fdbbc9.tar.gz
servo-485fe874e8674e9a54b69e3f78f1bb9f43fdbbc9.zip
layout: Expose whether the element was rendered in content_box_query to script.
But don't change the API yet.
Diffstat (limited to 'components/script_layout_interface/rpc.rs')
-rw-r--r--components/script_layout_interface/rpc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_layout_interface/rpc.rs b/components/script_layout_interface/rpc.rs
index 7b559078291..2fb75f6b959 100644
--- a/components/script_layout_interface/rpc.rs
+++ b/components/script_layout_interface/rpc.rs
@@ -43,7 +43,7 @@ pub trait LayoutRPC {
fn text_index(&self) -> TextIndexResponse;
}
-pub struct ContentBoxResponse(pub Rect<Au>);
+pub struct ContentBoxResponse(pub Option<Rect<Au>>);
pub struct ContentBoxesResponse(pub Vec<Rect<Au>>);