Skip to content

Commit

Permalink
layout: add media_data() method to ThreadSafeLayoutNode trait
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyusa authored and ferjm committed Oct 8, 2018
1 parent da5d1d4 commit 1985f0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/script_layout_interface/wrapper_traits.rs
Expand Up @@ -5,6 +5,7 @@
#![allow(unsafe_code)]

use HTMLCanvasData;
use HTMLMediaData;
use LayoutNodeType;
use OpaqueStyleAndLayoutData;
use SVGSVGData;
Expand Down Expand Up @@ -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>;
Expand Down

0 comments on commit 1985f0d

Please sign in to comment.