layout: add media_data() method to ThreadSafeLayoutNode trait

This commit is contained in:
Víctor Manuel Jáquez Leal 2018-08-27 14:28:42 +02:00 committed by Fernando Jiménez Moreno
parent da5d1d462f
commit 1985f0d75e

View file

@ -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<SVGSVGData>;
fn media_data(&self) -> Option<HTMLMediaData>;
/// 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<BrowsingContextId>;