mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
layout: add media_data() method to ThreadSafeLayoutNode trait
This commit is contained in:
parent
da5d1d462f
commit
1985f0d75e
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
#![allow(unsafe_code)]
|
#![allow(unsafe_code)]
|
||||||
|
|
||||||
use HTMLCanvasData;
|
use HTMLCanvasData;
|
||||||
|
use HTMLMediaData;
|
||||||
use LayoutNodeType;
|
use LayoutNodeType;
|
||||||
use OpaqueStyleAndLayoutData;
|
use OpaqueStyleAndLayoutData;
|
||||||
use SVGSVGData;
|
use SVGSVGData;
|
||||||
|
@ -279,6 +280,8 @@ pub trait ThreadSafeLayoutNode:
|
||||||
|
|
||||||
fn svg_data(&self) -> Option<SVGSVGData>;
|
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
|
/// 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.
|
/// not an iframe element, fails. Returns None if there is no nested browsing context.
|
||||||
fn iframe_browsing_context_id(&self) -> Option<BrowsingContextId>;
|
fn iframe_browsing_context_id(&self) -> Option<BrowsingContextId>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue