diff options
Diffstat (limited to 'components/layout/util.rs')
-rw-r--r-- | components/layout/util.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/layout/util.rs b/components/layout/util.rs index fca6fabb3ed..8d4d72e7466 100644 --- a/components/layout/util.rs +++ b/components/layout/util.rs @@ -78,6 +78,12 @@ pub struct LayoutDataWrapper { pub data: Box<PrivateLayoutData>, } +impl LayoutDataWrapper { + pub fn clear(&self) { + // TODO: Clear items related to this node, e.g. compositor layers + } +} + #[allow(dead_code)] fn static_assertion(x: Option<LayoutDataWrapper>) { unsafe { |