aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltablecellelement.rs
diff options
context:
space:
mode:
authorTim Taubert <tim@timtaubert.de>2014-10-12 18:53:31 +0200
committerTim Taubert <tim@timtaubert.de>2014-10-13 11:13:12 +0200
commit9a52bb8310eb9d479a5211b0048bb682da0ac123 (patch)
tree63d43b597057dd5d17e3bf57b7b351d8c1aa525e /components/script/dom/htmltablecellelement.rs
parentacd98a73a4ea1aad96705c49ab960d9c87a38a28 (diff)
downloadservo-9a52bb8310eb9d479a5211b0048bb682da0ac123.tar.gz
servo-9a52bb8310eb9d479a5211b0048bb682da0ac123.zip
Privatize InheritTypes
Diffstat (limited to 'components/script/dom/htmltablecellelement.rs')
-rw-r--r--components/script/dom/htmltablecellelement.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/components/script/dom/htmltablecellelement.rs b/components/script/dom/htmltablecellelement.rs
index f4fc2002fa9..97d85976614 100644
--- a/components/script/dom/htmltablecellelement.rs
+++ b/components/script/dom/htmltablecellelement.rs
@@ -14,8 +14,9 @@ use servo_util::str::DOMString;
#[jstraceable]
#[must_root]
+#[privatize]
pub struct HTMLTableCellElement {
- pub htmlelement: HTMLElement,
+ htmlelement: HTMLElement,
}
impl HTMLTableCellElementDerived for EventTarget {
@@ -34,6 +35,11 @@ impl HTMLTableCellElement {
htmlelement: HTMLElement::new_inherited(type_id, tag_name, prefix, document)
}
}
+
+ #[inline]
+ pub fn htmlelement<'a>(&'a self) -> &'a HTMLElement {
+ &self.htmlelement
+ }
}
impl Reflectable for HTMLTableCellElement {