mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Privatize InheritTypes
This commit is contained in:
parent
acd98a73a4
commit
9a52bb8310
80 changed files with 252 additions and 101 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue