aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/rpc.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2017-04-07 06:57:08 +0900
committerJosh Matthews <josh@joshmatthews.net>2017-05-15 14:07:41 -0400
commitdabebdfbf5e502e3eef7cb0159b20f0fa5e74f65 (patch)
tree2e206f387ada558e16f19078d1113247f2d68582 /components/script_layout_interface/rpc.rs
parentf3c8f7e0d0fb42f32e3699d07fc0f8002bf564c8 (diff)
downloadservo-dabebdfbf5e502e3eef7cb0159b20f0fa5e74f65.tar.gz
servo-dabebdfbf5e502e3eef7cb0159b20f0fa5e74f65.zip
Root nodes for the duration of their CSS transitions.
This ensures that we can pass a node address as part of the asynchronous transition end notification, making it safe to fire the corresponding DOM event on the node from the script thread. Without explicitly rooting this node when the transition starts, we risk the node being GCed before the transition is complete.
Diffstat (limited to 'components/script_layout_interface/rpc.rs')
-rw-r--r--components/script_layout_interface/rpc.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script_layout_interface/rpc.rs b/components/script_layout_interface/rpc.rs
index 82dd9b9ff08..1c694a7ff8c 100644
--- a/components/script_layout_interface/rpc.rs
+++ b/components/script_layout_interface/rpc.rs
@@ -42,6 +42,8 @@ pub trait LayoutRPC {
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;
}