aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlmediaelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlmediaelement.rs')
-rw-r--r--components/script/dom/htmlmediaelement.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs
index ef841c31a35..4141d7df79c 100644
--- a/components/script/dom/htmlmediaelement.rs
+++ b/components/script/dom/htmlmediaelement.rs
@@ -14,8 +14,9 @@ use servo_util::str::DOMString;
#[jstraceable]
#[must_root]
+#[privatize]
pub struct HTMLMediaElement {
- pub htmlelement: HTMLElement,
+ htmlelement: HTMLElement,
}
impl HTMLMediaElementDerived for EventTarget {
@@ -34,6 +35,11 @@ impl HTMLMediaElement {
htmlelement: HTMLElement::new_inherited(type_id, tag_name, prefix, document)
}
}
+
+ #[inline]
+ pub fn htmlelement<'a>(&'a self) -> &'a HTMLElement {
+ &self.htmlelement
+ }
}
impl Reflectable for HTMLMediaElement {