aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/lib.rs
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2020-03-26 13:17:46 +0100
committerAnthony Ramine <nox@nox.paris>2020-03-26 13:17:46 +0100
commit04af32128c10f8a67e8c012e68359169bbb8ef5e (patch)
tree2091f392710a4a36389b0e98edaf792f5a3e71e9 /components/layout_thread/lib.rs
parent2d055cbf6b8114bcc4f941b6f206f8e8014cc31a (diff)
downloadservo-04af32128c10f8a67e8c012e68359169bbb8ef5e.tar.gz
servo-04af32128c10f8a67e8c012e68359169bbb8ef5e.zip
Add a 'dom lifetime to GetLayoutData
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r--components/layout_thread/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index 60710009ff5..8029e5ed751 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -1039,7 +1039,7 @@ impl LayoutThread {
self.stylist.set_quirks_mode(quirks_mode);
}
- fn try_get_layout_root<N: LayoutNode>(&self, node: N) -> Option<FlowRef> {
+ fn try_get_layout_root<'dom>(&self, node: impl LayoutNode<'dom>) -> Option<FlowRef> {
let result = node.mutate_layout_data()?.flow_construction_result.get();
let mut flow = match result {