aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/layout_thread/dom_wrapper.rs2
-rw-r--r--components/layout_thread_2020/dom_wrapper.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs
index 5d9757e4ad0..0adb3ed4d6d 100644
--- a/components/layout_thread/dom_wrapper.rs
+++ b/components/layout_thread/dom_wrapper.rs
@@ -138,7 +138,7 @@ impl<'ln> ServoLayoutNode<'ln> {
}
}
- pub unsafe fn new(address: &TrustedNodeAddress) -> ServoLayoutNode {
+ pub unsafe fn new(address: &TrustedNodeAddress) -> Self {
ServoLayoutNode::from_layout_js(LayoutDom::from_trusted_node_address(*address))
}
diff --git a/components/layout_thread_2020/dom_wrapper.rs b/components/layout_thread_2020/dom_wrapper.rs
index 75a6ee0d9f3..8738a21bebb 100644
--- a/components/layout_thread_2020/dom_wrapper.rs
+++ b/components/layout_thread_2020/dom_wrapper.rs
@@ -145,7 +145,7 @@ impl<'ln> ServoLayoutNode<'ln> {
}
}
- pub unsafe fn new(address: &TrustedNodeAddress) -> ServoLayoutNode {
+ pub unsafe fn new(address: &TrustedNodeAddress) -> Self {
ServoLayoutNode::from_layout_js(LayoutDom::from_trusted_node_address(*address))
}