aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/rpc.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2017-04-10 17:47:20 +1000
committerJosh Matthews <josh@joshmatthews.net>2017-05-15 14:12:08 -0400
commit913491884431b9030db9a8a0a10011fa03aa2db6 (patch)
tree28e3c549fe542a79cb2c74edd5b28b928a4c1683 /components/script_layout_interface/rpc.rs
parentc3b9714ab79a8230162605236f7c2f5e247707a7 (diff)
downloadservo-913491884431b9030db9a8a0a10011fa03aa2db6.tar.gz
servo-913491884431b9030db9a8a0a10011fa03aa2db6.zip
Send information to script as part of finishing layout.
This avoids the need for multiple layout RPC operations immediately following return of control to script. This means that layout and script can continue to operate in parallel at this point, rather than one potentially waiting on the shared mutex to be unlocked.
Diffstat (limited to 'components/script_layout_interface/rpc.rs')
-rw-r--r--components/script_layout_interface/rpc.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/components/script_layout_interface/rpc.rs b/components/script_layout_interface/rpc.rs
index 1c694a7ff8c..a39e51d3633 100644
--- a/components/script_layout_interface/rpc.rs
+++ b/components/script_layout_interface/rpc.rs
@@ -2,7 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use PendingImage;
use app_units::Au;
use euclid::point::Point2D;
use euclid::rect::Rect;
@@ -38,12 +37,8 @@ pub trait LayoutRPC {
fn offset_parent(&self) -> OffsetParentResponse;
/// Query layout for the resolve values of the margin properties for an element.
fn margin_style(&self) -> MarginStyleResponse;
- /// Requests the list of not-yet-loaded images that were encountered in the last reflow.
- fn pending_images(&self) -> Vec<PendingImage>;
/// Requests the list of nodes from the given point.
fn nodes_from_point_response(&self) -> Vec<UntrustedNodeAddress>;
- /// Requests the list of nodes that have just started CSS transitions in the last reflow.
- fn newly_transitioning_nodes(&self) -> Vec<UntrustedNodeAddress>;
fn text_index(&self) -> TextIndexResponse;
}