aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/dom_wrapper.rs
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-08-27 16:29:15 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-10-08 16:12:00 +0200
commite1a031e447c5067a53e64c159ba97ec78b196051 (patch)
treedc6e0cbb8679e54dd523444f5707dd014f5e08ba /components/layout_thread/dom_wrapper.rs
parent1985f0d75e83c7a90de539d9e244383e15e2897b (diff)
downloadservo-e1a031e447c5067a53e64c159ba97ec78b196051.tar.gz
servo-e1a031e447c5067a53e64c159ba97ec78b196051.zip
layout: add media_data() to ServoThreadSafeLayoutNode implementation
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r--components/layout_thread/dom_wrapper.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs
index 5900b912e73..6a6bed73555 100644
--- a/components/layout_thread/dom_wrapper.rs
+++ b/components/layout_thread/dom_wrapper.rs
@@ -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()