From 1985f0d75e83c7a90de539d9e244383e15e2897b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 27 Aug 2018 14:28:42 +0200 Subject: [PATCH] layout: add media_data() method to ThreadSafeLayoutNode trait --- components/script_layout_interface/wrapper_traits.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs index 32cb4853fa4..9df6a7b44f4 100644 --- a/components/script_layout_interface/wrapper_traits.rs +++ b/components/script_layout_interface/wrapper_traits.rs @@ -5,6 +5,7 @@ #![allow(unsafe_code)] use HTMLCanvasData; +use HTMLMediaData; use LayoutNodeType; use OpaqueStyleAndLayoutData; use SVGSVGData; @@ -279,6 +280,8 @@ pub trait ThreadSafeLayoutNode: fn svg_data(&self) -> Option; + fn media_data(&self) -> Option; + /// If this node is an iframe element, returns its browsing context ID. If this node is /// not an iframe element, fails. Returns None if there is no nested browsing context. fn iframe_browsing_context_id(&self) -> Option;