mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
layout: add media_data() to ServoThreadSafeLayoutNode implementation
This commit is contained in:
parent
1985f0d75e
commit
e1a031e447
1 changed files with 9 additions and 2 deletions
|
@ -43,8 +43,10 @@ use script::layout_exports::{LayoutCharacterDataHelpers, LayoutDocumentHelpers};
|
|||
use script::layout_exports::{LayoutElementHelpers, LayoutNodeHelpers, LayoutDom, RawLayoutElementHelpers};
|
||||
use script::layout_exports::NodeFlags;
|
||||
use script::layout_exports::PendingRestyle;
|
||||
use script_layout_interface::{HTMLCanvasData, LayoutNodeType, SVGSVGData, TrustedNodeAddress};
|
||||
use script_layout_interface::{OpaqueStyleAndLayoutData, StyleData};
|
||||
use script_layout_interface::{
|
||||
HTMLCanvasData, HTMLMediaData, LayoutNodeType, OpaqueStyleAndLayoutData, SVGSVGData, StyleData,
|
||||
TrustedNodeAddress,
|
||||
};
|
||||
use script_layout_interface::wrapper_traits::{DangerousThreadSafeLayoutNode, GetLayoutData, LayoutNode};
|
||||
use script_layout_interface::wrapper_traits::{PseudoElementType, ThreadSafeLayoutElement, ThreadSafeLayoutNode};
|
||||
use selectors::attr::{AttrSelectorOperation, NamespaceConstraint, CaseSensitivity};
|
||||
|
@ -1053,6 +1055,11 @@ impl<'ln> ThreadSafeLayoutNode for ServoThreadSafeLayoutNode<'ln> {
|
|||
this.canvas_data()
|
||||
}
|
||||
|
||||
fn media_data(&self) -> Option<HTMLMediaData> {
|
||||
let this = unsafe { self.get_jsmanaged() };
|
||||
this.media_data()
|
||||
}
|
||||
|
||||
fn svg_data(&self) -> Option<SVGSVGData> {
|
||||
let this = unsafe { self.get_jsmanaged() };
|
||||
this.svg_data()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue