layout: Expose whether the element was rendered in content_box_query to script.

But don't change the API yet.
This commit is contained in:
Emilio Cobos Álvarez 2017-01-17 00:22:42 +01:00
parent 8159dac506
commit 485fe874e8
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 13 additions and 12 deletions

View file

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