aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/animations.rs
diff options
context:
space:
mode:
authorteymour-aldridge <teymour.aldridge@icloud.com>2021-02-05 14:25:02 +0000
committerteymour-aldridge <teymour.aldridge@icloud.com>2021-02-05 14:29:45 +0000
commitff767b13a93c0ca50fbe7e029ef57f0fee960a8d (patch)
tree66e61442ddf0a75adf90707b3726a4ccb32b1cd6 /components/script/animations.rs
parent466e895cdfc0cf909f49db8e4d2eb4958ad0101d (diff)
downloadservo-ff767b13a93c0ca50fbe7e029ef57f0fee960a8d.tar.gz
servo-ff767b13a93c0ca50fbe7e029ef57f0fee960a8d.zip
Remove unused arguments from methods.
Diffstat (limited to 'components/script/animations.rs')
-rw-r--r--components/script/animations.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/animations.rs b/components/script/animations.rs
index 25aad491f6d..cd581ed3cb3 100644
--- a/components/script/animations.rs
+++ b/components/script/animations.rs
@@ -125,7 +125,7 @@ impl Animations {
pub(crate) fn do_post_reflow_update(&self, window: &Window, now: f64) {
let pipeline_id = window.pipeline_id();
let mut sets = self.sets.sets.write();
- self.root_newly_animating_dom_nodes(&sets, window);
+ self.root_newly_animating_dom_nodes(&sets);
for (key, set) in sets.iter_mut() {
self.handle_canceled_animations(key, set, now, pipeline_id);
@@ -305,9 +305,7 @@ impl Animations {
fn root_newly_animating_dom_nodes(
&self,
sets: &FxHashMap<AnimationSetKey, ElementAnimationSet>,
- window: &Window,
) {
- let js_runtime = window.get_js_runtime().as_ref().unwrap().rt();
let mut rooted_nodes = self.rooted_nodes.borrow_mut();
for (key, set) in sets.iter() {
let opaque_node = key.node;
@@ -322,7 +320,7 @@ impl Animations {
unsafe {
rooted_nodes.insert(
opaque_node,
- Dom::from_ref(&*from_untrusted_node_address(js_runtime, address)),
+ Dom::from_ref(&*from_untrusted_node_address(address)),
)
};
}