diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-01-09 13:27:32 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-02-13 09:12:00 +0100 |
commit | 2a4535f43e5566a9773ed9a31931e8ec9523a22b (patch) | |
tree | 96d8d6ff0e9361a6f26b375f1843cbf8c42b1a17 /components/script_layout_interface/rpc.rs | |
parent | 0d7c2271c284bcc2d4bd005bd0e89f9a87eba636 (diff) | |
download | servo-2a4535f43e5566a9773ed9a31931e8ec9523a22b.tar.gz servo-2a4535f43e5566a9773ed9a31931e8ec9523a22b.zip |
Implement element.innerText getter
Diffstat (limited to 'components/script_layout_interface/rpc.rs')
-rw-r--r-- | components/script_layout_interface/rpc.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script_layout_interface/rpc.rs b/components/script_layout_interface/rpc.rs index 8902c7d0466..8bdb285ed8e 100644 --- a/components/script_layout_interface/rpc.rs +++ b/components/script_layout_interface/rpc.rs @@ -38,7 +38,8 @@ pub trait LayoutRPC { fn text_index(&self) -> TextIndexResponse; /// Requests the list of nodes from the given point. fn nodes_from_point_response(&self) -> Vec<UntrustedNodeAddress>; - + /// Query layout to get the inner text for a given element. + fn element_inner_text(&self) -> String; } pub struct ContentBoxResponse(pub Option<Rect<Au>>); |