mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +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)]
|
||||
|
||||
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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue